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

Displays the results from a history read operation.
Inheritance: System.Windows.Forms.UserControl
Datei anzeigen Open project: OPCFoundation/UA-.NET

Private Properties

Property Type Description
AddValue void
CreateSubscription void
DeleteAtTime void
DeleteRaw void
DeleteSubscription void
DetectLimitsBTN_Click void
DisplayResults void
EditValueMI_Click void
EndTimeCK_CheckedChanged void
FindPropertiesWithHistory List
GetSelectedNode Opc.Ua.NodeId
GoBTN_Click void
InitializeComponent void
InsertAnnotationMI_Click void
InsertReplace HistoryUpdateResultCollection
InsertReplace void
MaxReturnValuesCK_CheckedChanged void
MonitoredItem_Notification void
NextBTN_Click void
NodeIdBTN_Click void
ReadAtTime void
ReadConfiguration HistoricalDataConfigurationState
ReadFirstDate System.DateTime
ReadLastDate System.DateTime
ReadNext void
ReadProcessed void
ReadRaw void
ReadTypeCB_SelectedIndexChanged void
SaveContinuationPoint void
ShowServerTimestampMI_CheckedChanged void
StartTimeCK_CheckedChanged void
StartTimeDP_ValueChanged void
StopBTN_Click void
SubscribeCK_CheckedChanged void
SubscriptionStateChanged void
TimeShiftBTN_Click void
UpdateRow void

Public Methods

Method Description
ChangeNode ( Opc.Ua.NodeId nodeId ) : void

Changes the node monitored by the control.

ChangeSession ( Session session ) : void

Changes the session.

GetBrowsePathFromNodeState ( ISystemContext context, Opc.Ua.NodeId rootId, NodeState parent, RelativePath parentPath, BrowsePathCollection browsePaths ) : void

Recursively collects the variables in a NodeState and returns a collection of BrowsePaths.

HistoryDataListView ( ) : System

Constructs a new instance.

Reset ( ) : void

A kludge to get around the stupid designer that keeps setting property values to bogus defaults.

SessionReconnected ( Session session ) : void

Updates the control after the session has reconnected.

SetSortOrder ( bool mostRecentFirst ) : void

Sets the sort order for the control.

ShowConfiguration ( ) : void

Shows the configuration.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddValue ( Opc.Ua.DataValue value, ModificationInfo modificationInfo ) : void

Adds a value to the grid.

CreateSubscription ( ) : void

Creates the subscription.

DeleteAtTime ( ) : void

Deletes the history.

DeleteRaw ( bool isModified ) : void

Deletes the block of data.

DeleteSubscription ( ) : void

Deletes the subscription.

DetectLimitsBTN_Click ( object sender, EventArgs e ) : void
DisplayResults ( HistoryData values ) : void

Displays the results of a history operation.

EditValueMI_Click ( object sender, EventArgs e ) : void
EndTimeCK_CheckedChanged ( object sender, EventArgs e ) : void
FindPropertiesWithHistory ( ) : List

Reads the historical configuration for the node.

GetSelectedNode ( ) : Opc.Ua.NodeId

Returns the currently selected historical variable or property node id.

GoBTN_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.

InsertAnnotationMI_Click ( object sender, EventArgs e ) : void
InsertReplace ( Opc.Ua.NodeId nodeId, PerformUpdateType updateType, bool isStructure, IList values ) : HistoryUpdateResultCollection

Updates the history.

InsertReplace ( PerformUpdateType updateType ) : void

Updates the history.

MaxReturnValuesCK_CheckedChanged ( object sender, EventArgs e ) : void
MonitoredItem_Notification ( MonitoredItem monitoredItem, MonitoredItemNotificationEventArgs e ) : void

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

NextBTN_Click ( object sender, EventArgs e ) : void
NodeIdBTN_Click ( object sender, EventArgs e ) : void
ReadAtTime ( ) : void

Fetches the recent history.

ReadConfiguration ( ) : HistoricalDataConfigurationState

Reads the historical configuration for the node.

ReadFirstDate ( ) : System.DateTime

Reads the first date in the archive (truncates milliseconds and converts to local).

ReadLastDate ( ) : System.DateTime

Reads the last date in the archive (truncates milliseconds and converts to local).

ReadNext ( ) : void

Fetches the next batch of history.

ReadProcessed ( ) : void

Fetches the recent history.

ReadRaw ( bool isReadModified ) : void

Fetches the recent history.

ReadTypeCB_SelectedIndexChanged ( object sender, EventArgs e ) : void
SaveContinuationPoint ( HistoryReadDetails details, HistoryReadValueId nodeToRead, byte continuationPoint ) : void

Saves a continuation point for later use.

ShowServerTimestampMI_CheckedChanged ( object sender, EventArgs e ) : void
StartTimeCK_CheckedChanged ( object sender, EventArgs e ) : void
StartTimeDP_ValueChanged ( object sender, EventArgs e ) : void
StopBTN_Click ( object sender, EventArgs e ) : void
SubscribeCK_CheckedChanged ( object sender, EventArgs e ) : void
SubscriptionStateChanged ( ) : void

Updates the controls after the subscription state changes.

TimeShiftBTN_Click ( object sender, EventArgs e ) : void
UpdateRow ( DataRow row, Opc.Ua.DataValue value, ModificationInfo modificationInfo ) : void

Updates a value in the grid.

Method Details

ChangeNode() public method

Changes the node monitored by the control.
public ChangeNode ( Opc.Ua.NodeId nodeId ) : void
nodeId Opc.Ua.NodeId
return void

ChangeSession() public method

Changes the session.
public ChangeSession ( Session session ) : void
session Opc.Ua.Client.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

GetBrowsePathFromNodeState() public method

Recursively collects the variables in a NodeState and returns a collection of BrowsePaths.
public GetBrowsePathFromNodeState ( ISystemContext context, Opc.Ua.NodeId rootId, NodeState parent, RelativePath parentPath, BrowsePathCollection browsePaths ) : void
context ISystemContext
rootId Opc.Ua.NodeId
parent NodeState
parentPath Opc.Ua.RelativePath
browsePaths BrowsePathCollection
return void

HistoryDataListView() public method

Constructs a new instance.
public HistoryDataListView ( ) : System
return System

Reset() public method

A kludge to get around the stupid designer that keeps setting property values to bogus defaults.
public Reset ( ) : void
return void

SessionReconnected() public method

Updates the control after the session has reconnected.
public SessionReconnected ( Session session ) : void
session Opc.Ua.Client.Session
return void

SetSortOrder() public method

Sets the sort order for the control.
public SetSortOrder ( bool mostRecentFirst ) : void
mostRecentFirst bool If true the most recent entries are displayed first.
return void

ShowConfiguration() public method

Shows the configuration.
public ShowConfiguration ( ) : void
return void