| | |
| | |
|
| | | /// <summary>
|
| | | /// 列表控件
|
| | | /// </summary> |
| | | /// </summary>
|
| | | private VerticalScrolViewLayout listView = null;
|
| | | /// <summary> |
| | | /// 当前选择的网关 |
| | | /// </summary> |
| | | /// <summary>
|
| | | /// 当前选择的网关
|
| | | /// </summary>
|
| | | private ZbGateway zbGateway = null;
|
| | | /// <summary>
|
| | | /// 升级固件信息(0:Linux新版本 1:协调器新版本 2~X:都是虚拟驱动的)
|
| | |
| | | /// <summary>
|
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
| | | /// </summary>
|
| | | /// <param name="i_zbGateway">当前选择的网关</param> |
| | | public void ShowForm(ZbGateway i_zbGateway) |
| | | { |
| | | /// <param name="i_zbGateway">当前选择的网关</param>
|
| | | public void ShowForm(ZbGateway i_zbGateway)
|
| | | {
|
| | | if (zbGateway != null && HdlGatewayLogic.Current.GetGatewayId(zbGateway) != HdlGatewayLogic.Current.GetGatewayId(i_zbGateway))
|
| | | {
|
| | | //不是同一个东西
|
| | | return;
|
| | | } |
| | | this.zbGateway = i_zbGateway; |
| | | |
| | | //设置标题信息 |
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uFirmwareInformation)); |
| | | |
| | | //初始化中部控件 |
| | | //this.InitMiddleFrame(); |
| | | } |
| | | |
| | | }
|
| | | this.zbGateway = i_zbGateway;
|
| | |
|
| | | //设置标题信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uFirmwareInformation));
|
| | |
|
| | | //初始化中部控件
|
| | | //this.InitMiddleFrame();
|
| | | }
|
| | |
|
| | | ///// <summary>
|
| | | ///// 初始化中部控件
|
| | | ///// </summary> |
| | | //private void InitMiddleFrame() |
| | | ///// </summary>
|
| | | //private void InitMiddleFrame()
|
| | | //{
|
| | | // //清空bodyFrame
|
| | | // this.ClearBodyFrame();
|
| | |
| | | // this.ShowProgressBar();
|
| | | // }
|
| | |
|
| | | // new System.Threading.Thread(async () =>
|
| | | // HdlThreadLogic.Current.Run(async () =>
|
| | | // {
|
| | | // //获取网关新版本信息
|
| | | // this.listVersionInfo = await Common.LocalGateway.Current.GetGatewayAllNewVersion(this.zbGateway);
|
| | |
| | | // //添加固件升级行
|
| | | // this.AddFirmwareUpdateRow();
|
| | | // });
|
| | | // })
|
| | | // { IsBackground = true }.Start(); |
| | | // });
|
| | | //}
|
| | |
|
| | | #endregion
|
| | |
| | | // btnUpview.TextID = R.MyInternationalizationString.uGateWay;
|
| | | // row.AddChidren(btnUpview);
|
| | |
|
| | | // row.AddRightIconControl();
|
| | | // row.AddRightArrow();
|
| | |
|
| | | // row.MouseUpEvent += (sender, e) =>
|
| | | // {
|
| | |
| | | // btnUpview.TextID = R.MyInternationalizationString.uCoordinator;
|
| | | // row.AddChidren(btnUpview);
|
| | |
|
| | | // row.AddRightIconControl();
|
| | | // row.AddRightArrow();
|
| | |
|
| | | // row.MouseUpEvent += (sender, e) =>
|
| | | // {
|
| | |
| | | // btnUpview.TextID = R.MyInternationalizationString.uVirtualDrive;
|
| | | // row.AddChidren(btnUpview);
|
| | |
|
| | | // row.AddRightIconControl();
|
| | | // row.AddRightArrow();
|
| | |
|
| | | // row.MouseUpEvent += (sender, e) =>
|
| | | // {
|
| | |
| | | // btnUpview.TextID = R.MyInternationalizationString.uFirmwareUpdate;
|
| | | // statuRow.AddChidren(btnUpview);
|
| | | // //版本向右的图标
|
| | | // statuRow.AddRightIconControl();
|
| | | // statuRow.AddRightArrow();
|
| | |
|
| | | // if (listVersionInfo[0] != null || listVersionInfo[1] != null || listVersionInfo[2] != null)
|
| | | // {
|