| | |
| | | /// </summary>
|
| | | private void ShowFinishMsg()
|
| | | {
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //状态变更
|
| | | this.IsFinishUpdate = true;
|
| | |
| | | this.btnUpdateButton.SetNotClickStatu();
|
| | |
|
| | | });
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | private void StartDownLoadTimeOutThread()
|
| | | {
|
| | | this.downLoadTimeOutCount = 30;
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | while (true)
|
| | | {
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | //超时时间设置
|
| | | this.updateTimeOutCount = 60;
|
| | |
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | while (this.IsFinishUpdate == false)
|
| | | {
|
| | |
| | | //设置错误信息
|
| | | this.ShowErrorMsg(this.errorMsg);
|
| | | }
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// <returns></returns>
|
| | | private void StartGetGatewayVersionThread()
|
| | | {
|
| | | new System.Threading.Thread(async () =>
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //当前网关的版本
|
| | | var oldVersion = HdlGatewayLogic.Current.GetGwInfoAttribute(this.upDatezbGateway, "LinuxFWVersion");
|
| | |
| | | }
|
| | | //已经能够获取数据
|
| | | this.ShowFinishMsg();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|