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

Inheritance: System.Windows.Forms.Form
Show file Open project: OPCFoundation/UA-.NET Class Usage Examples

Protected Properties

Property Type Description
BrowseCTRL BrowseTreeCtrl
SessionsCTRL SessionTreeCtrl

Public Methods

Method Description
Connect ( ConfiguredEndpoint endpoint ) : void

Connects to a server.

Disconnect ( ) : void

Disconnects from a server.

OpenForm ( ) : void

Opens a new form.

PublisherForm ( ) : System
PublisherForm ( ServiceMessageContext context, ApplicationInstance application, PublisherForm masterForm, ApplicationConfiguration configuration ) : System

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 this form is closing.

Private Methods

Method Description
DiscoverServersMI_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
NotificationsCTRL_ItemsAdded ( object sender, ListItemActionEventArgs 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

contentsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

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 Opc.Ua.Client.Session
return void

OnClosing() protected method

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

OpenForm() public method

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

PublisherForm() public method

public PublisherForm ( ) : System
return System

PublisherForm() public method

public PublisherForm ( ServiceMessageContext context, ApplicationInstance application, PublisherForm masterForm, ApplicationConfiguration configuration ) : System
context ServiceMessageContext
application Opc.Ua.Configuration.ApplicationInstance
masterForm PublisherForm
configuration ApplicationConfiguration
return System

Property Details

BrowseCTRL protected property

protected BrowseTreeCtrl BrowseCTRL
return BrowseTreeCtrl

SessionsCTRL protected property

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