C# Class Opc.Ua.Sample.Controls.BrowseTreeCtrl

Inheritance: Opc.Ua.Client.Controls.BaseTreeCtrl
Datei anzeigen Open project: OPCFoundation/UA-.NET

Private Properties

Property Type Description
AddReferences void
Browse bool
BrowseMI_Click void
BrowseOptionsMI_Click void
BrowseRefreshMI_Click void
Browser_MoreReferences void
CallMI_Click void
EncodingsMI_Click void
FindReferenceTypeContainer System.Windows.Forms.TreeNode
GetParentOfSelected ReferenceDescription
HistoryReadMI_Click void
InitializeComponent void
ReadMI_Click void
SelectChildrenMI_Click void
SelectItemMI_Click void
ShowReferencesMI_CheckedChanged void
Subscribe void
SubscribeNewMI_Click void
ViewAttributesMI_Click void
WriteMI_Click void

Public Methods

Method Description
BrowseTreeCtrl ( ) : System
Clear ( ) : void

Clears the contents of the control,

GetTargetText ( ReferenceDescription reference ) : string

Returns to display text for the target of a reference.

SetRoot ( Browser browser, NodeId rootId ) : void

Sets the root node for the control.

SetRoot ( Session session, NodeId rootId ) : void

Sets the root node for the control.

SetView ( Session session, BrowseViewType viewType, NodeId viewId ) : void

Sets the view for the control.

Subscription_Click ( object sender, EventArgs e ) : void

Protected Methods

Method Description
BeforeExpand ( TreeNode clickedNode ) : bool
Dispose ( bool disposing ) : void

Clean up any resources being used.

EnableMenuItems ( TreeNode clickedNode ) : void
SelectNode ( ) : void

Private Methods

Method Description
AddReferences ( TreeNode parent, ReferenceDescriptionCollection references ) : void

Adds a target to the tree control.

Browse ( TreeNode node ) : bool

Browses the server address space and adds the targets to the tree.

BrowseMI_Click ( object sender, EventArgs e ) : void
BrowseOptionsMI_Click ( object sender, EventArgs e ) : void
BrowseRefreshMI_Click ( object sender, EventArgs e ) : void
Browser_MoreReferences ( Browser sender, BrowserEventArgs e ) : void
CallMI_Click ( object sender, EventArgs e ) : void
EncodingsMI_Click ( object sender, EventArgs e ) : void
FindReferenceTypeContainer ( TreeNode parent, ReferenceDescription reference ) : TreeNode

Adds a container for the reference type to the tree control.

GetParentOfSelected ( ) : ReferenceDescription

Returns the parent node of the selected reference.

HistoryReadMI_Click ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ReadMI_Click ( object sender, EventArgs e ) : void
SelectChildrenMI_Click ( object sender, EventArgs e ) : void
SelectItemMI_Click ( object sender, EventArgs e ) : void
ShowReferencesMI_CheckedChanged ( object sender, EventArgs e ) : void
Subscribe ( Subscription subscription, ReferenceDescription reference ) : void

Adds a item to a subscription.

SubscribeNewMI_Click ( object sender, EventArgs e ) : void
ViewAttributesMI_Click ( object sender, EventArgs e ) : void
WriteMI_Click ( object sender, EventArgs e ) : void

Method Details

BeforeExpand() protected method

protected BeforeExpand ( TreeNode clickedNode ) : bool
clickedNode System.Windows.Forms.TreeNode
return bool

BrowseTreeCtrl() public method

public BrowseTreeCtrl ( ) : System
return System

Clear() public method

Clears the contents of the control,
public Clear ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EnableMenuItems() protected method

protected EnableMenuItems ( TreeNode clickedNode ) : void
clickedNode System.Windows.Forms.TreeNode
return void

GetTargetText() public method

Returns to display text for the target of a reference.
public GetTargetText ( ReferenceDescription reference ) : string
reference ReferenceDescription
return string

SelectNode() protected method

protected SelectNode ( ) : void
return void

SetRoot() public method

Sets the root node for the control.
public SetRoot ( Browser browser, NodeId rootId ) : void
browser Opc.Ua.Client.Browser
rootId NodeId
return void

SetRoot() public method

Sets the root node for the control.
public SetRoot ( Session session, NodeId rootId ) : void
session Opc.Ua.Client.Session
rootId NodeId
return void

SetView() public method

Sets the view for the control.
public SetView ( Session session, BrowseViewType viewType, NodeId viewId ) : void
session Opc.Ua.Client.Session
viewType BrowseViewType
viewId NodeId
return void

Subscription_Click() public method

public Subscription_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void