| | |
| | | private void RegisterEvent(MenuFrmBase dockFrm) |
| | | { |
| | | dockFrm.OnUploadProcess = DockFrm_OnUploadProcess; |
| | | dockFrm.OnLogMsgOutput = DockFrm_OnLogMsgOutput; |
| | | |
| | | dockFrm.OnLogMsgOutput -= DockFrm_OnLogMsgOutput; |
| | | dockFrm.OnLogMsgOutput += DockFrm_OnLogMsgOutput; |
| | | |
| | | //if (dockFrm is FrmDevices) |
| | | //{ |
| | |
| | | }); |
| | | } |
| | | |
| | | private void Process_OnAlarmUpdate(string alarmMsg) |
| | | private async void Process_OnAlarmUpdate(string alarmMsg) |
| | | { |
| | | this.BeginInvoke(new Action(() => |
| | | { |
| | | tsslWarning.Text = alarmMsg; |
| | | })); |
| | | |
| | | await Task.Delay(100); |
| | | } |
| | | |
| | | private ToolStripMenuItem GetMatchNode(ToolStripItemCollection items, string parentMenuCode) |