C# Class Opc.Ua.Client.Controls.Common.EditComplexValueCtrl

Allows the user to edit a complex value.
Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: OPCFoundation/UA-.NET

Private Properties

Property Type Description
Convert object
GetDataType System.Type
GetDataTypeString string
GetIndexFromCount int[]
GetListElementType System.Type
InitializeComponent void
IsSimpleValue bool
NavigationMENU_Click void
ShowIndexedValue void
ShowNamedValue void
ShowTextValue void
ShowTextValue void
ShowTextValue void
ShowTextValue void
ShowValue void
ShowValueNoNotify void
UpdateParent void
ValueToString string
ValuesDV_CellValidating void
ValuesDV_CellValueChanged void
ValuesDV_DoubleClick void

Public Methods

Method Description
Back ( ) : void

Moves the displayed value back.

ChangeSession ( Session session ) : void

Changes the session used for editing the value.

EditComplexValueCtrl ( ) : System

Constructs the object.

EndEdit ( ) : void

Validates the value currently being edited.

GetValue ( ) : object

Returns the edited value.

SetArraySize ( ) : void

Changes the array size.

SetType ( BuiltInType builtInType ) : void

Changes the data type.

ShowValue ( NodeId nodeId, uint attributeId, string name, object value, bool readOnly ) : void

Displays the value in the control.

ShowValue ( TypeInfo expectedType, string name, object value ) : void

Displays the value in the control.

ShowValue ( string name, NodeId dataType, int valueRank, object value ) : void

Displays the value in the control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Convert ( object oldValue, TypeInfo oldType, TypeInfo newType, bool useDefaultOnError ) : object

Converts the old type to the new type.

GetDataType ( AccessInfo accessInfo ) : Type

Returns the data type of the value.

GetDataTypeString ( AccessInfo accessInfo ) : string

Returns the data type of the value.

GetIndexFromCount ( int count, int dimensions ) : int[]

Returns the index based on the current count.

GetListElementType ( IList list ) : Type

Returns the element type for a list.

InitializeComponent ( ) : void

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

IsSimpleValue ( AccessInfo info ) : bool

Whether the value can be edited in the grid view.

NavigationMENU_Click ( object sender, EventArgs e ) : void
ShowIndexedValue ( AccessInfo info ) : void

Adds the value at an array index to the control.

ShowNamedValue ( AccessInfo info ) : void

Adds the value with the specified name to the control.

ShowTextValue ( XmlElement value ) : void

Displays a complete XML element in the control.

ShowTextValue ( byte value ) : void

Displays a complete byte string in the control.

ShowTextValue ( object value, TypeInfo typeInfo ) : void

Displays a value in the control.

ShowTextValue ( string value ) : void

Displays a string in the control.

ShowValue ( AccessInfo parent ) : void

Displays the value in the control.

ShowValueNoNotify ( AccessInfo parent ) : void

Displays the value in the control.

UpdateParent ( AccessInfo info ) : void

Recusivesly updates the parent values.

ValueToString ( object value, TypeInfo typeInfo ) : string

Converts a value to a string for display in the grid.

ValuesDV_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void
ValuesDV_CellValueChanged ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
ValuesDV_DoubleClick ( object sender, EventArgs e ) : void

Method Details

Back() public method

Moves the displayed value back.
public Back ( ) : void
return void

ChangeSession() public method

Changes the session used for editing the value.
public ChangeSession ( Session session ) : void
session Session
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

EditComplexValueCtrl() public method

Constructs the object.
public EditComplexValueCtrl ( ) : System
return System

EndEdit() public method

Validates the value currently being edited.
public EndEdit ( ) : void
return void

GetValue() public method

Returns the edited value.
public GetValue ( ) : object
return object

SetArraySize() public method

Changes the array size.
public SetArraySize ( ) : void
return void

SetType() public method

Changes the data type.
public SetType ( BuiltInType builtInType ) : void
builtInType BuiltInType
return void

ShowValue() public method

Displays the value in the control.
public ShowValue ( NodeId nodeId, uint attributeId, string name, object value, bool readOnly ) : void
nodeId NodeId
attributeId uint
name string
value object
readOnly bool
return void

ShowValue() public method

Displays the value in the control.
public ShowValue ( TypeInfo expectedType, string name, object value ) : void
expectedType TypeInfo
name string
value object
return void

ShowValue() public method

Displays the value in the control.
public ShowValue ( string name, NodeId dataType, int valueRank, object value ) : void
name string
dataType NodeId
valueRank int
value object
return void