C# Class Opc.Ua.Client.Controls.ConfiguredServerDlg

Prompts the user to edit a ComPseudoServerDlg.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Private Properties

Свойство Type Description
BuildEndpointDescriptionStrings void
CreateDescriptionFromSelections EndpointDescription
DiscoverEndpoints bool
EndpointListLB_SelectedIndexChanged void
FindBestEndpointDescription EndpointDescription
InitializeComponent void
InitializeEncodings void
InitializeEndpointList void
InitializeProtocols void
InitializeSecurityModes void
InitializeSecurityPolicies void
OkBTN_Click void
OnDiscoverEndpoints void
OnUpdateEndpoints void
OnUpdateStatus void
ProtocolCB_SelectedIndexChanged void
SameAsDefaults bool
SecurityModeCB_SelectedIndexChanged void
SecurityPolicyCB_SelectedIndexChanged void
SelectCorrespondingEndpointFromList void
UpdateAdvancedEndpointInformation void
UpdateStatus void

Méthodes publiques

Méthode Description
ConfiguredServerDlg ( ) : System

Initializes the dialog.

ShowDialog ( ApplicationDescription server, ApplicationConfiguration configuration ) : ConfiguredEndpoint

Displays the dialog.

ShowDialog ( ConfiguredEndpoint endpoint, ApplicationConfiguration configuration ) : ConfiguredEndpoint

Displays the dialog.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
BuildEndpointDescriptionStrings ( EndpointDescriptionCollection endpoints ) : void

Creates the string representation of each EndpointDescription - to be used in the Endpoint Description List

CreateDescriptionFromSelections ( ) : EndpointDescription

Creates the endpoint description from current selections.

DiscoverEndpoints ( Uri discoveryUrl, String &message ) : bool

Fetches the servers from the discovery server.

EndpointListLB_SelectedIndexChanged ( object sender, EventArgs e ) : void
FindBestEndpointDescription ( EndpointDescriptionCollection endpoints ) : EndpointDescription

Finds the best match for the current protocol and security selections.

InitializeComponent ( ) : void

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

InitializeEncodings ( EndpointDescriptionCollection endpoints, EndpointDescription endpoint ) : void

Initializes the message encodings dropdown.

InitializeEndpointList ( List endpoints ) : void

Initializes the endpoint list control.

InitializeProtocols ( EndpointDescriptionCollection endpoints ) : void

Initializes the protocol dropdown.

InitializeSecurityModes ( EndpointDescriptionCollection endpoints ) : void

Initializes the security modes dropdown.

InitializeSecurityPolicies ( EndpointDescriptionCollection endpoints ) : void

Initializes the security policies dropdown.

OkBTN_Click ( object sender, EventArgs e ) : void
OnDiscoverEndpoints ( object state ) : void

Attempts fetch the list of servers from the discovery server.

OnUpdateEndpoints ( object state ) : void

Updates the list of servers displayed in the control.

OnUpdateStatus ( object status ) : void

Updates the status displayed in the dialog.

ProtocolCB_SelectedIndexChanged ( object sender, EventArgs e ) : void
SameAsDefaults ( EndpointConfiguration defaultConfiguration, EndpointConfiguration currentConfiguration ) : bool

Returns true if the configuration is the same as the default.

SecurityModeCB_SelectedIndexChanged ( object sender, EventArgs e ) : void
SecurityPolicyCB_SelectedIndexChanged ( object sender, EventArgs e ) : void
SelectCorrespondingEndpointFromList ( EndpointDescription endpoint ) : void
UpdateAdvancedEndpointInformation ( ) : void

Updates advanced endpoint information.

UpdateStatus ( ) : void

Updates the StatusTB text and color. Also enables/disables the OK button, should any error occurr (unsupported stuff etc).

Method Details

ConfiguredServerDlg() public méthode

Initializes the dialog.
public ConfiguredServerDlg ( ) : System
Résultat System

Dispose() protected méthode

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

ShowDialog() public méthode

Displays the dialog.
public ShowDialog ( ApplicationDescription server, ApplicationConfiguration configuration ) : ConfiguredEndpoint
server ApplicationDescription
configuration ApplicationConfiguration
Résultat ConfiguredEndpoint

ShowDialog() public méthode

Displays the dialog.
public ShowDialog ( ConfiguredEndpoint endpoint, ApplicationConfiguration configuration ) : ConfiguredEndpoint
endpoint ConfiguredEndpoint
configuration ApplicationConfiguration
Résultat ConfiguredEndpoint