Namespace: Consultingwerk.Windows.Framework.Menu
Class 
SmartFunctionViewer Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartComponents.Base.SmartViewerControl
Implements: Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataTarget, Consultingwerk.SmartComponents.Interfaces.Design.IDesignGroupAssignSource, Consultingwerk.SmartComponents.Interfaces.Design.IDesignToolbarTarget, Consultingwerk.SmartComponents.Interfaces.Design.IDesignViewerControl, Consultingwerk.SmartComponents.Interfaces.ISmartViewerControl, Consultingwerk.SmartComponents.Base.IAlwaysEnabledControl, ICheckOkToClose, IHandlesServerEvents, IHasDesignerVerbs, ISaveChangesOnDeactivateForm, ISmartDataTarget, ISmartGroupAssignSource, ISmartGroupAssignTarget, ISmartTableIOTarget, ISmartToolbarTarget, ISupportInitialize

File:SmartFunctionViewer
Purpose:Maintenance Viewer for SmartFunction
Author(s):Marko Rueterbories / Consultingwerk Ltd.
Created:Thu Oct 11 18:34:49 CEST 2012



Top Method Summary
Options Name Purpose
AttachBindingSource (BindingSource) This Method attaches a new BindingSource given as the Parameter poBindingSource to the Objects of the current Class. The new BindingSource may have been created by a DataAdapter or reused from a SmartBrowserControl
CurrentChangedHandler (Object, EventArgs) Event handler for the CurrentChanged event of the SmartDataSource
FunctionSmallImageLeaveHandler (Object, EventArgs) Event handler for the Leave event of the FunctionSmallImage
ImageSelection_DragDrop (Object, DragEventArgs) Assigns the filename of the dropped file to the ImageEditors
ImageSelection_DragEnter (Object, DragEventArgs) Allows the FileDrop to the editor control if the events data contains exact one file.
ImageSelection_EditorButtonClick (Object, EditorButtonEventArgs) Displays the OpenFileDialog for the ImageEditors to select a path
ImageSelection_KeyDownHandler (Object, KeyEventArgs) Displays the OpenFileDialog for the ImageEditors to select a path
InitializeCallParameterControl (UserControl, character) Initialize a Call Parameter UserControl on the Viewer.
InitializeComponent ()
OnAfterAddRecord (EventArgs) Raises the AfterAddRecord event
OnAfterCopyRecord (EventArgs) After copying a record the correct CallParameter UserControl has to be shown and the current value is restored by setting the Text property of the CallParameterControl to the stored CallParameter value.
OnBeforeAddRecord (CancelEventArgs) Raises the OnBeforeAddRecord event
RestoreValuesForCopy () Override of the RestoreValuesForCopy to additionally restore the FunctionCallParameter value.
SetDataBindingForCallParameterControl () Sets the Data binding for the CallParameterControl
smartBusinessEntityLookup1_EditorButtonClick (Object, EditorButtonEventArgs) Event handler for the EditorButtonClick event of the smartBusinessEntityLookup1
StoreValuesForCopy () Override of the StoreValuesForCopy method to additionally store the value of the FunctionCallParameter.
TextChangedEventHandler (Object, EventArgs) Event Handler for the TextChanged event of the contained Controls

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


Method Detail
Top

AttachBindingSource (BindingSource)

Purpose: This Method attaches a new BindingSource given as the Parameter
poBindingSource to the Objects of the current Class. The new
BindingSource may have been created by a DataAdapter or reused from a
SmartBrowserControl
Notes: Enforced by Interface ISmartDataTarget.
It is called by the SmartDataAdapter Class when creating a new
BindingSource or when a new SmartDataSource is registered to the
Class implementing the Interface ISmartDataTarget.
This method is also called from the SmartViewerControl destructor (while
a form is closed) to de-attach from the Binding Source. In this case
the poBindingSource reference is passed in as the unknown value.

Parameters:
poBindingSource Progress.Data.BindingSource
The BindingSource to be attached to the Controls contained in the Viewer
Top

CurrentChangedHandler (Object, EventArgs)

Purpose: Event handler for the CurrentChanged event of the SmartDataSource
Notes: Routine to build the UI depending on the Data provided in the
FunctionCallParameter field from the Database.

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

FunctionSmallImageLeaveHandler (Object, EventArgs)

Purpose: Event handler for the Leave event of the FunctionSmallImage
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

ImageSelection_DragDrop (Object, DragEventArgs)

Purpose: Assigns the filename of the dropped file to the ImageEditors
Notes:

Parameters:
sender System.Object
The source of the event
e System.Windows.Forms.DragEventArgs
An EventArgs that contains the data for the event
Top

ImageSelection_DragEnter (Object, DragEventArgs)

Purpose: Allows the FileDrop to the editor control if the events data
contains exact one file.
Notes:

Parameters:
sender System.Object
The source of the event
e System.Windows.Forms.DragEventArgs
An EventArgs that contains the data for the event
Top

ImageSelection_EditorButtonClick (Object, EditorButtonEventArgs)

Purpose: Displays the OpenFileDialog for the ImageEditors to select a path
Notes:

Parameters:
sender System.Object
The source of the event
e Infragistics.Win.UltraWinEditors.EditorButtonEventArgs
An EventArgs that contains the data for the event
Top

ImageSelection_KeyDownHandler (Object, KeyEventArgs)

Purpose: Displays the OpenFileDialog for the ImageEditors to select a path
Notes:

Parameters:
sender System.Object
The source of the event
e System.Windows.Forms.KeyEventArgs
An EventArgs that contains the data for the event
Top

InitializeCallParameterControl (UserControl, character)

Purpose: Initialize a Call Parameter UserControl on the Viewer.
Notes:

Parameters:
poCallParameterControl System.Windows.Forms.UserControl
The UserControl to arrange on the Viewer
pcLabel CHARACTER
The label to display in the header
Top

InitializeComponent ()


Top

OnAfterAddRecord (EventArgs)

Purpose: Raises the AfterAddRecord event
Notes: Resets the lAddingRecord property

Parameters:
e System.EventArgs
An EventArgs that contains no event data
Top

OnAfterCopyRecord (EventArgs)

Purpose: After copying a record the correct CallParameter UserControl has
to be shown and the current value is restored by setting the Text
property of the CallParameterControl to the stored CallParameter
value.
Notes:

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

OnBeforeAddRecord (CancelEventArgs)

Purpose: Raises the OnBeforeAddRecord event
Notes: Displays a dialog to let the user choose a type of CallParameter to
add. When the user cancels the Dialog, no Record will be created

Parameters:
e System.ComponentModel.CancelEventArgs
A CancelableEventArgs that contains the data for the event
Top

RestoreValuesForCopy ()

Purpose: Override of the RestoreValuesForCopy to additionally restore the
FunctionCallParameter value.
Notes:

Top

SetDataBindingForCallParameterControl ()

Purpose: Sets the Data binding for the CallParameterControl
Notes:

Top

smartBusinessEntityLookup1_EditorButtonClick (Object, EditorButtonEventArgs)

Purpose: Event handler for the EditorButtonClick event of the smartBusinessEntityLookup1
Notes:

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

StoreValuesForCopy ()

Purpose: Override of the StoreValuesForCopy method to additionally store the
value of the FunctionCallParameter.
Notes:

Top

TextChangedEventHandler (Object, EventArgs)

Purpose: Event Handler for the TextChanged event of the contained Controls
Notes: Overrides the TextChanged handler in the SmartViewerControl

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


Constructor Detail
Top

SmartFunctionViewer ()

Purpose: Constructor for the SmartFunctionViewer class
Notes:



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       30.03.2026 11:14:39