完成打开导入OPC变量对话框自动连接服务器
This commit is contained in:
@@ -37,6 +37,8 @@ public partial class OpcUaImportDialogViewModel : ObservableObject
|
||||
{
|
||||
OpcUaNodes = new ObservableCollection<OpcUaNode>();
|
||||
SelectedNodeVariables = new ObservableCollection<VariableData>();
|
||||
// Automatically connect when the ViewModel is created
|
||||
_ = Connect().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
||||
Reference in New Issue
Block a user