Namespace: Consultingwerk.Windows.Framework.Scheduler
Class 
SmartSchedulerJobViewerControl 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:SmartSchedulerJobViewerControl
Purpose:Viewer Control to maintain the Scheduler Job Details
Author(s):Mark Bartscherer / Consultingwerk Ltd.
Created:25.05.2016 19:58:48



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
InitializeComponent ()
InitializeJobCommandControl (UserControl, character) Initialize a Call Parameter UserControl on the Viewer.
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.
SetDataBindingForJobCommandControl () Sets the Databinding for the CallParameterControl
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
SmartSchedulerJobViewerControl () Constructor for the SmartSchedulerJobViewerControl 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

InitializeComponent ()


Top

InitializeJobCommandControl (UserControl, character)

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

Parameters:
poJobCommandControl System.Windows.Forms.UserControl
The UserControl to arrange on the Viewer
pcLabel CHARACTER
The label to display in the header
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

SetDataBindingForJobCommandControl ()

Purpose: Sets the Databinding for the CallParameterControl
Notes:

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

SmartSchedulerJobViewerControl ()

Purpose: Constructor for the SmartSchedulerJobViewerControl class
Notes:



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