Namespace: Consultingwerk.SmartComponents.Base
Class 
SmartViewerLogic Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartComponents.Interfaces.ISmartViewerLogic
ABSTRACT

File:SmartViewerLogic
Purpose:Base class for classes that provide client side logic
for SmartViewerControl instances
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Sep 22 21:14:55 CEST 2013



Top Method Summary
Options Name Purpose
+ System.Windows.Forms.Control GetBoundControl (character) Returns the reference to the first Control that is bound to the named field of the binding source
+ System.Collections.Generic.List <System.Windows.Forms.Control> GetBoundControls (character) Returns the list of references of the Controls that are bound to the named field of the binding source
+ LOGICAL HasBoundControl (character) Returns logical value indicating if the Viewer contains a Control that is bound to the named field
+ Initialize () Initializes the SmartViewerLogic instance
+ RegisterSmartViewerControl (SmartViewerControl) Handshake method for SmartViewerControl instances
+ Shutdown () Shuts down the SmartViewerLogic instance
+ A SubscribeEvents () Subscribes the events for an attached viewer instance
+ A UnsubscribeEvents () Unsubscribes the events for an attached viewer instance

Top Constructor Summary
Options Name Purpose
+ SmartViewerLogic () Constructor for the SmartViewerLogic class

Top Property Summary
Options Name Purpose
+ Consultingwerk.SmartComponents.Base.SmartViewerControl Owner
+ Consultingwerk.SmartComponents.Base.ListSmartViewerControl SmartViewerControls


Method Detail
Top

PUBLIC System.Windows.Forms.Control GetBoundControl (character)

Purpose: Returns the reference to the first Control that is bound to the named
field of the binding source
Notes: Searchs all Controls in the owning viewer and also GroupAssignLinked viewers

Parameters:
pcBindingPropertyName CHARACTER
The name of the field in the ProBindingSource
Returns System.Windows.Forms.Control
The bound Control of ? when no Control is bound
Top

PUBLIC System.Collections.Generic.List <System.Windows.Forms.Control> GetBoundControls (character)

Purpose: Returns the list of references of the Controls that are bound to the
named field of the binding source
Notes: Returns all Controls in the owning viewer and also GroupAssignLinked viewers

Parameters:
pcBindingPropertyName CHARACTER
The name of the field in the ProBindingSource
Returns System.Collections.Generic.List <System.Windows.Forms.Control>
The List of bound Controls
Top

PUBLIC LOGICAL HasBoundControl (character)

Purpose: Returns logical value indicating if the Viewer contains a Control
that is bound to the named field
Notes: Includes Group Assigned viewers

Parameters:
pcBindingPropertyName CHARACTER
The name of the field in the ProBindingSource
Returns LOGICAL
Logical value indicating if a bound control exists
Top

PUBLIC Initialize ()

Purpose: Initializes the SmartViewerLogic instance
Notes:

Top

PUBLIC RegisterSmartViewerControl (SmartViewerControl)

Purpose: Handshake method for SmartViewerControl instances
Notes: You may override this method to perform initialization for a
specific viewer

Parameters:
poSmartViewerControl Consultingwerk.SmartComponents.Base.SmartViewerControl
The SmartViewerControl instance this logic class will provid logic for
Top

PUBLIC Shutdown ()

Purpose: Shuts down the SmartViewerLogic instance
Notes:

Top

PUBLIC SubscribeEvents ()

Purpose: Subscribes the events for an attached viewer instance
Notes: This method needs to be implemented by the Viewer Logic class and
is supposed to subscribe to control events

Top

PUBLIC UnsubscribeEvents ()

Purpose: Unsubscribes the events for an attached viewer instance
Notes: This method needs to be implemented by the Viewer Logic class and
is supposed to unsubscribe from control events



Constructor Detail
Top

PUBLIC SmartViewerLogic ()

Purpose: Constructor for the SmartViewerLogic class
Notes:



Property Detail
Top

PUBLIC Consultingwerk.SmartComponents.Base.SmartViewerControl Owner


Returns Consultingwerk.SmartComponents.Base.SmartViewerControl
Top

PUBLIC Consultingwerk.SmartComponents.Base.ListSmartViewerControl SmartViewerControls


Returns Consultingwerk.SmartComponents.Base.ListSmartViewerControl


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:15:43