C# Class Quickstarts.AlarmConditionClient.MainForm

A form which displays the condition events produced by the server.
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
Acknowledge ( ) : void

Acknowledges the selected conditions.

AddComment ( ) : void

Adds a comment to the selected conditions.

AuditEventForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the FormClosing event of the AuditEventForm control.

CallMethod ( Opc.Ua.NodeId methodId, string comment ) : void

Adds a comment to the selected conditions.

ConditionsMI_DropDownOpening ( object sender, EventArgs e ) : void

Handles the DropDownOpening event of the ConditionsMI control.

Conditions_AcknowledgeMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_AcknowledgeMI control.

Conditions_AddCommentMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_AddCommentMI control.

Conditions_ConfirmMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_ConfirmMI control.

Conditions_DisableMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_DisableMI control.

Conditions_EnableMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_EnableMI control.

Conditions_ManualShelveMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_ManualShelveMI control.

Conditions_MonitorMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_MonitorMI control.

Conditions_OneShotShelveMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_OneShotShelveMI control.

Conditions_RefreshMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_RefreshMI control.

Conditions_RespondMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_RespondMI control.

Conditions_SetAreaFilterMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_SetAreaFilterMI control.

Conditions_SeverityMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_SeverityMI control.

Conditions_TimedShelveMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_TimedShelveMI control.

Conditions_TypeMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_TypeMI control.

Conditions_UnshelveMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Conditions_UnshelveMI control.

Confirm ( ) : void

Confirms the selected conditions.

EnableDisableCondition ( bool enable ) : void

Enables or disables the selected conditions.

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.

Respond ( int selectedResponse ) : void

Responds to the dialog.

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.

Shelve ( bool shelving, bool oneShot, double shelvingTime ) : void

Confirms the selected conditions.

UpdateFilter ( ) : void

Updates the filter.

View_AuditEventsMI_Click ( object sender, EventArgs e ) : void

Handles the Click event of the View_AuditEventsMI control.

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