| | |
| | | /// </summary> |
| | | private SerialPort Sp = new SerialPort(); |
| | | /// <summary> |
| | | /// 定时刷新 |
| | | /// gridview定时刷新 |
| | | /// </summary> |
| | | System.Timers.Timer timer = new System.Timers.Timer(10000); |
| | | public Frm_Work09() |
| | |
| | | } |
| | | catch (Exception exe) |
| | | { |
| | | LogHelper.Debug(this.ToString(), "打开失败:" + exe.Message); |
| | | LogHelper.Debug(this.ToString(), "打开串口通信失败:" + exe.Message); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("打开失败" + exe.Message); |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |