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

显示文件 Open project: OPCFoundation/UA-.NET Class Usage Examples

Protected Properties

Property Type Description
BrowseCTRL BrowseTreeCtrl
SessionsCTRL SessionTreeCtrl

Public Methods

Method Description
ClientForm ( ) : System
ClientForm ( ServiceMessageContext context, ApplicationInstance application, ClientForm masterForm, ApplicationConfiguration configuration ) : System
Connect ( ConfiguredEndpoint endpoint ) : void

Connects to a server.

Disconnect ( ) : void

Disconnects from a server.

OpenForm ( ) : void

Opens a new form.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoTest ( Session session ) : void

Provides a user defined method.

OnClosing ( CancelEventArgs e ) : void

Disconnect from the server if ths form is closing.

Private Methods

Method Description
DiscoverServersMI_Click ( object sender, EventArgs e ) : void
DiscoverServersOnNetworkMI_Click ( object sender, EventArgs e ) : void
Discovery_RegisterMI_Click ( object sender, EventArgs e ) : void
EndpointSelectorCTRL_ConnectEndpoint ( object sender, ConnectEndpointEventArgs e ) : void
EndpointSelectorCTRL_OnChange ( object sender, EventArgs e ) : void
FileExit_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.

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
NewWindowMI_Click ( object sender, EventArgs e ) : void
OnRegister ( object sender ) : void
PerformanceTestMI_Click ( object sender, EventArgs e ) : void
StandardClient_KeepAlive ( Session sender, KeepAliveEventArgs e ) : void

Updates the status control when a keep alive event occurs.

StandardClient_Server_ReconnectComplete ( object sender, EventArgs e ) : void
Task_TestMI_Click ( object sender, EventArgs e ) : void
Window_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles a close event fo

contentsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

ClientForm() public method

public ClientForm ( ) : System
return System

ClientForm() public method

public ClientForm ( ServiceMessageContext context, ApplicationInstance application, ClientForm masterForm, ApplicationConfiguration configuration ) : System
context ServiceMessageContext
application ApplicationInstance
masterForm ClientForm
configuration ApplicationConfiguration
return System

Connect() public method

Connects to a server.
public Connect ( ConfiguredEndpoint endpoint ) : void
endpoint ConfiguredEndpoint
return void

Disconnect() public method

Disconnects from a server.
public Disconnect ( ) : 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

DoTest() protected method

Provides a user defined method.
protected DoTest ( Session session ) : void
session Session
return void

OnClosing() protected method

Disconnect from the server if ths form is closing.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OpenForm() public method

Opens a new form.
public OpenForm ( ) : void
return void

Property Details

BrowseCTRL protected_oe property

protected BrowseTreeCtrl,Opc.Ua.Sample.Controls BrowseCTRL
return BrowseTreeCtrl

SessionsCTRL protected_oe property

protected SessionTreeCtrl,Opc.Ua.Sample.Controls SessionsCTRL
return SessionTreeCtrl