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