void ShowMachineMessage(MachineMessageInfo messageInfo) { if (messageInfo != null) { this.SetMachineNoMessage(messageInfo.MachineNoMessage); this.SetServiceConnectStatusMessage(messageInfo.ServiceConnectStatusMessage); this.SetMachineMessage(messageInfo.MachineMessage); this.SetPLCConnectMessage(messageInfo.PLCConnectMessage); } }
/// <summary> /// 設置機台信息 /// </summary> public void SetMachineNoMessage(MachineMessageInfo machineMessageInfo) { lock (this._machineMessageInfos) { try { if (this._machineMessageInfos.ContainsKey(machineMessageInfo.MachineNoMessage)) { this._machineMessageInfos[machineMessageInfo.MachineNoMessage] = machineMessageInfo; } else { this._machineMessageInfos.Add(machineMessageInfo.MachineNoMessage, machineMessageInfo); } } catch (Exception ex) { } } this._showMachineMessageTimeIndex = this._showMachineMessageTimeCount; }