| | |
| | |
|
| | | //指定的设备
|
| | | var btnDevice = frameLayout.frameTable.AddLeftCaption("", 830);
|
| | | btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Top);
|
| | | //btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Top);
|
| | | btnDevice.X = Application.GetRealWidth(200);
|
| | | btnDevice.BackgroundColor = UserCenterColor.Current.Transparent;
|
| | | btnDevice.Text = HdlGatewayLogic.Current.GetGatewayName(upDatezbGateway);
|
| | |
|
| | | //固件信息
|
| | | this.btnProgress = frameLayout.frameTable.AddLeftCaption("", 830);
|
| | | btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Bottom);
|
| | | //btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Bottom);
|
| | | btnDevice.X = Application.GetRealWidth(200);
|
| | | btnProgress.BackgroundColor = UserCenterColor.Current.Transparent;
|
| | | if (this.gatewayFirmware != null)
|
| | |
| | | /// </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
|