C# Class Quickstarts.DataAccessClient.MainForm

The main form for a simple Data Access Client application.
Inheritance: System.Windows.Forms.Form
Mostra file Open project: OPCFoundation/UA-.NET

Public Methods

Method Description
MainForm ( ApplicationConfiguration configuration ) : System

Creates a form which uses the specified client configuration.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BrowseNodesTV_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Updates the display after a node is selected.

BrowseNodesTV_BeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Fetches the children for a node the first time the node is expanded in the tree view.

BrowseNodesTV_MouseDown ( object sender, MouseEventArgs e ) : void

Ensures the correct node is selected before displaying the context menu.

Browse_MonitorMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Browse_MonitorMI control.

Browse_ReadHistoryMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Browse_ReadHistoryMI control.

Browse_WriteMI_Click ( object sender, EventArgs e ) : void

Prompts the use to write the value of a varible.

BrowsingMenu_Opening ( object sender, System e ) : void
CreateMonitoredItem ( Opc.Ua.NodeId nodeId, string displayName ) : System.Windows.Forms.ListViewItem

Creates the monitored item.

DeadbandFilterToText ( MonitoringFilter filter ) : string

Converts a monitoring filter to text for display.

DisplayAttributes ( Opc.Ua.NodeId sourceId ) : void

Displays the attributes and properties in the attributes view.

File_LoadMI_Click ( object sender, EventArgs e ) : void

Creates monitored items from a saved list of node ids.

File_SaveMI_Click ( object sender, EventArgs e ) : void

Saves the current monitored items.

Help_ContentsMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Help_ContentsMI control.

InitializeComponent ( ) : void

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

MainForm ( ) : System

Creates an empty form.

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Cleans up when the main form closes.

MonitoredItem_Notification ( MonitoredItem monitoredItem, MonitoredItemNotificationEventArgs e ) : void

Updates the display with a new value for a monitored variable.

Monitoring_Deadband_Click ( object sender, EventArgs e ) : void

Changes the deadband for the currently selected monitored items.

Monitoring_DeleteMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Monitoring_DeleteMI control.

Monitoring_MonitoringMode_Click ( object sender, EventArgs e ) : void

Changes the monitoring mode for the currently selected monitored items.

Monitoring_SamplingInterval_Click ( object sender, EventArgs e ) : void

Changes the sampling interval for the currently selected monitored items.

Monitoring_WriteMI_Click ( object sender, EventArgs e ) : void
PopulateBranch ( Opc.Ua.NodeId sourceId, TreeNodeCollection nodes ) : void

Populates the branch in the tree view.

Server_ConnectComplete ( object sender, EventArgs e ) : void

Updates the application after connecting to or disconnecting from the server.

Server_ConnectMI_Click ( object sender, EventArgs e ) : void

Connects to a server.

Server_DisconnectMI_Click ( object sender, EventArgs e ) : void

Disconnects from the current session.

Server_DiscoverMI_Click ( object sender, EventArgs e ) : void

Prompts the user to choose a server on another host.

Server_ReconnectComplete ( object sender, EventArgs e ) : void

Updates the application after reconnecting to the server.

Server_ReconnectStarting ( object sender, EventArgs e ) : void

Updates the application after a communicate error was detected.

Server_SetLocaleMI_Click ( object sender, EventArgs e ) : void

Sets the locale to use.

Server_SetUserMI_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

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

MainForm() public method

Creates a form which uses the specified client configuration.
public MainForm ( ApplicationConfiguration configuration ) : System
configuration ApplicationConfiguration The configuration to use.
return System