完成添加OPC变量
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using CommunityToolkit.Mvvm.Messaging;
|
||||
using iNKORE.UI.WPF.Modern.Controls;
|
||||
using PMSWPF.Models;
|
||||
@@ -41,4 +42,17 @@ public partial class OpcUaImportDialog : ContentDialog
|
||||
await ViewModel.LoadNodeVariables(selectedNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs args)
|
||||
{
|
||||
if (args.AddedItems!=null && args.AddedItems.Count>0)
|
||||
{
|
||||
foreach (var item in args.AddedItems)
|
||||
{
|
||||
ViewModel.SelectedVariables.Add((VariableData)item);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user