|
|
@@ -1,6 +1,7 @@ |
|
|
|
using BeDesignerSCADA.Common; |
|
|
|
using BeDesignerSCADA.Controls; |
|
|
|
using BeDesignerSCADA.View; |
|
|
|
using BPASmart.Model; |
|
|
|
using BPASmartClient.Compiler; |
|
|
|
using BPASmartClient.DATABUS; |
|
|
|
using BPASmartClient.MessageName; |
|
|
@@ -12,6 +13,7 @@ using Microsoft.Toolkit.Mvvm.ComponentModel; |
|
|
|
using Microsoft.Toolkit.Mvvm.Input; |
|
|
|
using Microsoft.Win32; |
|
|
|
using System; |
|
|
|
using System.Collections.Concurrent; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using System.ComponentModel; |
|
|
@@ -35,7 +37,7 @@ namespace BeDesignerSCADA.ViewModel |
|
|
|
{ |
|
|
|
IsRunning = !IsRunning; |
|
|
|
}); |
|
|
|
DataBusModel.GetInstance().RefreshTheVariableManagerAction += RefreshTheVariableManagerActionHader; |
|
|
|
DataBusModel.GetInstance().RefreshTheVariableManagerAction += RefreshTheVariableManagerActionHader; |
|
|
|
} |
|
|
|
|
|
|
|
#region 变量 |
|
|
@@ -43,7 +45,10 @@ namespace BeDesignerSCADA.ViewModel |
|
|
|
/// 变量管理器地址 |
|
|
|
/// </summary> |
|
|
|
public string VariablePath = string.Empty; |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 当前变量管理器变量 |
|
|
|
/// </summary> |
|
|
|
public CommunicationPar communicationPar = new CommunicationPar(); |
|
|
|
/// <summary> |
|
|
|
/// 是否正在运行状态 |
|
|
|
/// </summary> |
|
|
@@ -211,7 +216,10 @@ namespace BeDesignerSCADA.ViewModel |
|
|
|
{ |
|
|
|
if (path == VariablePath && !string.IsNullOrEmpty(VariablePath)) |
|
|
|
{ |
|
|
|
|
|
|
|
if (DataBusModel.GetInstance().KeyValues.ContainsKey(VariablePath)) |
|
|
|
{ |
|
|
|
communicationPar = DataBusModel.GetInstance().KeyValues[VariablePath]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|