| | |
| | | /// </summary> |
| | | private void InitMiddleFrame() |
| | | { |
| | | this.bodyFrameLayout.RemoveAll();
|
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | | |
| | | //设备图片 |
| | | var btnpictrue = new PicViewControl(510, 320);
|
| | |
| | | new System.Threading.Thread(async () =>
|
| | | {
|
| | | //设置设备全部的镜像信息
|
| | | Common.LocalDevice.Current.SetAllImageInfoToOtaDevice(oTADevice, this.OtaImageInfoActionBack);
|
| | | HdlDeviceImageInfoLogic.Current.SetAllImageInfoToOtaDevice(oTADevice, this.OtaImageInfoActionBack);
|
| | | int count = 5;
|
| | | while (this.receiveImageInfo == false && count > 0)
|
| | | {
|
| | |
| | | }
|
| | | //变量还原
|
| | | this.receiveImageInfo = false;
|
| | | //移除事件
|
| | | HdlDeviceImageInfoLogic.Current.RemoveDeviceFirmwareVersionThread(oTADevice);
|
| | |
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
| | | |
| | | Application.RunOnMainThread(() => |
| | | {
|
| | | if (ActionFormClose != null)
|
| | | {
|
| | | this.ActionFormClose(deviceName);
|
| | | }
|
| | | }); |
| | | this.ActionFormClose?.Invoke(deviceName);
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 关闭界面___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 画面关闭
|
| | | /// </summary>
|
| | | public override void CloseForm()
|
| | | {
|
| | | this.ActionFormClose = null;
|
| | | base.CloseForm(); |
| | | }
|
| | |
|
| | | #endregion |