public void UpdateData(Data.ControllerInfo info) { if (info != null) { Availability = info.Availability; ControllerMode = info.ControllerMode; ExecutionMode = info.ExecutionMode; } }
private void UpdateDeviceData(string uniqueId, Data.ControllerInfo info) { var deviceInfo = cachedDevicesInfos.Find(o => o.UniqueId == uniqueId); if (deviceInfo == null) { deviceInfo = new Data.DeviceInfo(); deviceInfo.UniqueId = uniqueId; cachedDevicesInfos.Add(deviceInfo); } deviceInfo.Controller = info; }
public void UpdateData(Data.ControllerInfo info) { if (info != null) { Availability = info.Availability; //EmergencyStop = info.EmergencyStop; ControllerMode = info.ControllerMode; ExecutionMode = info.ExecutionMode; //Program = info.ProgramName; //Block = info.ProgramBlock; //Line = info.ProgramLine; //if (!string.IsNullOrEmpty(info.SystemStatus)) SystemStatus = info.SystemStatus; //SystemMessage = info.SystemMessage; } }
public void UpdateData(Data.ControllerInfo info) { if (info != null) { if (!string.IsNullOrEmpty(info.EmergencyStop)) { EmergencyStop = info.EmergencyStop; } if (!string.IsNullOrEmpty(info.ControllerMode)) { ControllerMode = info.ControllerMode; } if (!string.IsNullOrEmpty(info.ExecutionMode)) { ExecutionMode = info.ExecutionMode; } Program = info.ProgramName; SystemStatus = info.SystemStatus; SystemMessage = info.SystemMessage; } }