Namespace: Consultingwerk.Windows.Framework.System
Class 
SmartAttachmentControl Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartComponents.Base.SmartUserControl
Implements: IHasDesignerVerbs

File:SmartAttachmentControl
Purpose:Allows access to attachments (add, delete, open, export)
based on the SmartAttachment table
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jan 13 19:05:04 CET 2013
Notes:Customers using the SmartAttachmentControl should add
a call to the CleanTempFiles methods of the ITempFileManager
service after the main WAIT-FOR statement. Attachments
directly opened will be saved in the temp directory
(-T parameter) and will be deleted be the call to the
CleanUp method



Top Method Summary
Options Name Purpose
AddAttachment () Adds Attachments using a File Open Dialog
AfterRetrieveDataHandler (Object, EventArgs) Event handler for the AfterRetrieveData event of the Attachment's Business Entity Adapter
BuildRibbonTab (UltraToolbarsManager) Builds a contextual RibbonTab for the SmartAttachmentControl
Infragistics.Win.UltraWinToolbars.ButtonTool CreateRibbonButton (UltraToolbarsManager, RibbonGroup, character, character, character, character) Creates a Ribbon Button (ButtonTool)
Infragistics.Win.UltraWinToolbars.StateButtonTool CreateRibbonStateButton (UltraToolbarsManager, RibbonGroup, character, character, character) Creates a Ribbon State Button (StateButtonTool)
DeleteAttachment () Deletes the selected attachment
ExportAttachment () Exports the selected attachments to a local folder
InitializeComponent ()
LeaveHandler (Object, EventArgs) Event handler for the Leave event of the SmartAttachmentControl
OnEnter (EventArgs) Raises the Enter event
OnLoad (EventArgs) Raises the Load event
OpenAttachment () Opens the selected Attachments
ParentFormClosedHandler (Object, FormClosedEventArgs) Event handler for the FormClosed event of the parent Form
QueryClosedHandler (Object, EventArgs) Event handler for the QueryClosed event of the smartBusinessEntityAdapter1 instance
timer1_Tick (Object, EventArgs) Event handler for the Tick event of the timer1 component
ToggleToolbarObjectsVisible (logical) Toggles the Visibility of the toolbar objects of this Control
ToggleView (character) Sets the View of the ListView
ToolClickHandler (Object, ToolClickEventArgs) Event handler for the ToolClick event of the UltraToolbarsManager
ultraListView1_DragDrop (Object, DragEventArgs) Event handler for the DragDrop event of the ListView control
ultraListView1_DragEnter (Object, DragEventArgs) Event handler for the DragEnter event of the ListView control
ultraListView1_ItemSelectionChanged (Object, ItemSelectionChangedEventArgs) Event handler for the ItemSelectionChanged event of the UltraListView1
ultraListView1_MouseDown (Object, MouseEventArgs) Event handler for the MouseDown even of the ultraListView1
ultraListView1_MouseMove (Object, MouseEventArgs) Event handler for the MouseMove event of the ultarListView1 control
ultraListView1_MouseUp (Object, MouseEventArgs) Event handler for the MouseUp event of the ultarListView1 control

Top Constructor Summary
Options Name Purpose
SmartAttachmentControl () Constructor for the SmartAttachmentControl class

Top Property Summary
Options Name Purpose
LOGICAL CanAddAttachments
Infragistics.Win.UltraWinToolbars.ContextualTabGroup ContextualRibbonTabGroup
Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource LinkDataSource
Consultingwerk.SmartComponents.Interfaces.ISmartDataSource SmartDataSource


Method Detail
Top

AddAttachment ()

Purpose: Adds Attachments using a File Open Dialog
Notes: Supports adding multiple files

Top

AfterRetrieveDataHandler (Object, EventArgs)

Purpose: Event handler for the AfterRetrieveData event of the Attachment's
Business Entity Adapter
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

BuildRibbonTab (UltraToolbarsManager)

Purpose: Builds a contextual RibbonTab for the SmartAttachmentControl
Notes:

Parameters:
poToolbar Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
The UltraToolbarsManager instance to add the Ribobn Tab to
Top

Infragistics.Win.UltraWinToolbars.ButtonTool CreateRibbonButton (UltraToolbarsManager, RibbonGroup, character, character, character, character)

Purpose: Creates a Ribbon Button (ButtonTool)
Notes:

Parameters:
poToolbar Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
The UltraToolbarsManager instance to add the Ribobn Tab to
poRibbonGroup Infragistics.Win.UltraWinToolbars.RibbonGroup
The RibbonGroup to add the new Ribbon Button to
pcKey CHARACTER
The key of the new Ribbon Button
pcLabel CHARACTER
The label of the new Ribbon Button
pcImageSmall CHARACTER
The key of the small image to be retrieved from the IImageProvider instance
pcImageLarge CHARACTER
The key of the large image to be retrieved from the IImageProvider instance
Returns Infragistics.Win.UltraWinToolbars.ButtonTool
The reference to the created ButtonTool
Top

Infragistics.Win.UltraWinToolbars.StateButtonTool CreateRibbonStateButton (UltraToolbarsManager, RibbonGroup, character, character, character)

Purpose: Creates a Ribbon State Button (StateButtonTool)
Notes:

Parameters:
poToolbar Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
The UltraToolbarsManager instance to add the Ribobn Tab to
poRibbonGroup Infragistics.Win.UltraWinToolbars.RibbonGroup
The RibbonGroup to add the new Ribbon Button to
pcKey CHARACTER
The key of the new Ribbon Button
pcLabel CHARACTER
The label of the new Ribbon Button
pcOptionSetKey CHARACTER
The key of the option set this belongs to
Returns Infragistics.Win.UltraWinToolbars.StateButtonTool
The reference to the created StateButtonTool
Top

DeleteAttachment ()

Purpose: Deletes the selected attachment
Notes:

Top

ExportAttachment ()

Purpose: Exports the selected attachments to a local folder
Notes:

Top

InitializeComponent ()


Top

LeaveHandler (Object, EventArgs)

Purpose: Event handler for the Leave event of the SmartAttachmentControl
Notes:

Parameters:
sender System.Object
The refenence to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

OnEnter (EventArgs)

Purpose: Raises the Enter event
Notes:

Parameters:
e System.EventArgs
The System.EventArgs with the data for this event
Top

OnLoad (EventArgs)

Purpose: Raises the Load event
Notes:

Parameters:
e System.EventArgs
The System.EventArgs with the data for this event
Top

OpenAttachment ()

Purpose: Opens the selected Attachments
Notes:

Top

ParentFormClosedHandler (Object, FormClosedEventArgs)

Purpose: Event handler for the FormClosed event of the parent Form
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.FormClosedEventArgs
The FormClosedEventArgs with the data for this event
Top

QueryClosedHandler (Object, EventArgs)

Purpose: Event handler for the QueryClosed event of the smartBusinessEntityAdapter1
instance
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

timer1_Tick (Object, EventArgs)

Purpose: Event handler for the Tick event of the timer1 component
Notes: Starts the Drag and drop operation

Parameters:
sender System.Object
The reference to the object instance that raised this event
e System.EventArgs
The reference to the System.EventArgs with the data for this event
Top

ToggleToolbarObjectsVisible (logical)

Purpose: Toggles the Visibility of the toolbar objects of this Control
Notes:

Parameters:
plVisible LOGICAL
Logical value indicating if the Toolbar objects (RibbonTab) should be visible
Top

ToggleView (character)

Purpose: Sets the View of the ListView
Notes:

Parameters:
pcView CHARACTER
The View: Icon, List, Tiles
Top

ToolClickHandler (Object, ToolClickEventArgs)

Purpose: Event handler for the ToolClick event of the UltraToolbarsManager
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Infragistics.Win.UltraWinToolbars.ToolClickEventArgs
The ToolClickEventArgs with the data for this event
Top

ultraListView1_DragDrop (Object, DragEventArgs)

Purpose: Event handler for the DragDrop event of the ListView control
Notes:

Parameters:
sender System.Object
The reference to the sending Control
e System.Windows.Forms.DragEventArgs
The DragEventArgs with the data for this event
Top

ultraListView1_DragEnter (Object, DragEventArgs)

Purpose: Event handler for the DragEnter event of the ListView control
Notes:

Parameters:
sender System.Object
The reference to the sending Control
e System.Windows.Forms.DragEventArgs
The DragEventArgs with the data for this event
Top

ultraListView1_ItemSelectionChanged (Object, ItemSelectionChangedEventArgs)

Purpose: Event handler for the ItemSelectionChanged event of the UltraListView1
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs
The ItemSelectionChangedEventArgs with the data for this event
Top

ultraListView1_MouseDown (Object, MouseEventArgs)

Purpose: Event handler for the MouseDown even of the ultraListView1
Notes:

Parameters:
sender System.Object
The object that raised the MouseDown event
e System.Windows.Forms.MouseEventArgs
The System.Windows.Forms.MouseEventArgs with the data for this event
Top

ultraListView1_MouseMove (Object, MouseEventArgs)

Purpose: Event handler for the MouseMove event of the ultarListView1 control
Notes: Cancels a pending drag and drop operation

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.MouseEventArgs
The reference to the MouseEventArgs instance with the data for this event
Top

ultraListView1_MouseUp (Object, MouseEventArgs)

Purpose: Event handler for the MouseUp event of the ultarListView1 control
Notes: Cancels a pending drag and drop operation

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.MouseEventArgs
The reference to the MouseEventArgs instance with the data for this event


Constructor Detail
Top

SmartAttachmentControl ()

Purpose: Constructor for the SmartAttachmentControl class
Notes:



Property Detail
Top

LOGICAL CanAddAttachments


Returns LOGICAL
Top

Infragistics.Win.UltraWinToolbars.ContextualTabGroup ContextualRibbonTabGroup


Returns Infragistics.Win.UltraWinToolbars.ContextualTabGroup
Top

Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource LinkDataSource


Returns Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource
Top

Consultingwerk.SmartComponents.Interfaces.ISmartDataSource SmartDataSource


Returns Consultingwerk.SmartComponents.Interfaces.ISmartDataSource


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:32:55