Namespace: Consultingwerk.Windows.Util.Controls
Class 
ProDatasetViewerControl Copy to Clipboard
Parent classes:
Inherits: Progress.Windows.UserControl

File:ProDatasetViewerControl
Purpose:Viewer for a ProDataset
Author(s):Marko Rüterbories / Consultingwerk Ltd.
Created:Mon Aug 03 08:58:01 CEST 2009



Top Method Summary
Options Name Purpose
+ DisplayDataset (handle) Displays the provided DataSet in the Control
- FillTreeViewWithTableNames () Walk though the Dataset TopBuffers and add all of them with their childs to the TreeView
- InitializeComponent () Initializes the Visual Design
+ NodeMouseClickHandler (Object, TreeNodeMouseClickEventArgs) Switches the view to the table which is selected. Checks whether the table is checked (data available).
- System.Windows.Forms.TreeNode RecurseDatasetRelations (handle, handle, TreeNode) Add the DatasetRelations recursively to the tree
- LOGICAL RecurseFindTreeNodeName (character, TreeNodeCollection) Find a TreeNode by Name
- CHARACTER RecurseTreeNodeNames (TreeNodeCollection) Builds a list of all selected child tables from the given selected node
- System.Windows.Forms.TreeNode RecurseTreeNodes (TreeNodeCollection) Returns the first selected table to display in DataView

Top Constructor Summary
Options Name Purpose
+ ProDatasetViewerControl () Initialize a new instance of the Class and subscribe to events.

Top Property Summary
Options Name Purpose
+ HANDLE DataSet Returns the Dataset Handle this UserControl is visualizing


Method Detail
Top

PUBLIC DisplayDataset (handle)

Purpose: Displays the provided DataSet in the Control
Notes:

Parameters:
phDataset HANDLE
The handle of the ProDataset
Top

PRIVATE FillTreeViewWithTableNames ()

Purpose: Walk though the Dataset TopBuffers and add all of them with their
childs to the TreeView
Notes:

Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PUBLIC NodeMouseClickHandler (Object, TreeNodeMouseClickEventArgs)

Purpose: Switches the view to the table which is selected. Checks whether the
table is checked (data available).
Notes:

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

PRIVATE System.Windows.Forms.TreeNode RecurseDatasetRelations (handle, handle, TreeNode)

Purpose: Add the DatasetRelations recursively to the tree
Notes:

Parameters:
phDataHandle HANDLE
The handle of the ProDataset
phBuffer HANDLE
The current iteration of the parent buffer
poParentTreeNode System.Windows.Forms.TreeNode
The current parent tree node
Returns System.Windows.Forms.TreeNode
The tree node for the current buffer
Top

PRIVATE LOGICAL RecurseFindTreeNodeName (character, TreeNodeCollection)

Purpose: Find a TreeNode by Name
Notes: Returns TRUE if found

Parameters:
cFindTreeNodeName CHARACTER
The name of the treenode to find
oNodeCollection System.Windows.Forms.TreeNodeCollection
The reference to the TreeNodeCollection
Returns LOGICAL
Logical value indicating if the node name was found
Top

PRIVATE CHARACTER RecurseTreeNodeNames (TreeNodeCollection)

Purpose: Builds a list of all selected child tables from the given selected
node
Notes:

Parameters:
oNodeCollection System.Windows.Forms.TreeNodeCollection
The reference to the TreeNodeCollection
Returns CHARACTER
The comma delimited list of child table names
Top

PRIVATE System.Windows.Forms.TreeNode RecurseTreeNodes (TreeNodeCollection)

Purpose: Returns the first selected table to display in DataView
Notes:

Parameters:
oNodeCollection System.Windows.Forms.TreeNodeCollection
The reference to the TreeNodeCollection
Returns System.Windows.Forms.TreeNode
The reference to the first selected TreeNode


Constructor Detail
Top

PUBLIC ProDatasetViewerControl ()

Purpose: Initialize a new instance of the Class and subscribe to events.
Notes:



Property Detail
Top

PUBLIC HANDLE DataSet

Purpose: Returns the Dataset Handle this UserControl is visualizing
Notes:

Returns HANDLE


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:54:43