HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-08-11 26d1cdf2f5246c1ad7890e6740444c4a6a80e6fb
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -42,6 +42,15 @@
            //初始化中部信息
            this.InitMiddleFrame();
            if (UserCenterResourse.HideOption.StartDebugApp == 1)
            {
                //开启调试时,不允许关闭这个界面
                this.BackButtonClickEvent += (sender) =>
                {
                    return;
                };
            }
        }
        /// <summary>
@@ -234,6 +243,61 @@
            btnTemp.TextAlignment = TextAlignment.Center;
            rowTemp.AddChidren(btnTemp);
            //开启调试功能
            if (UserCenterResourse.HideOption.StartDebugApp == 1)
            {
                row1 = new FrameRowControl(listView.rowSpace / 2);
                listView.AddChidren(row1);
                row1.AddLeftCaption("成员列表", 500);
                row1.AddRightArrow();
                row1.AddBottomLine();
                row1.ButtonClickEvent += (sender, e) =>
                {
                    var form = new Member.MemberListForm();
                    form.AddForm();
                };
                row1 = new FrameRowControl(listView.rowSpace / 2);
                listView.AddChidren(row1);
                row1.AddLeftCaption("备份列表", 500);
                row1.AddRightArrow();
                row1.AddBottomLine();
                row1.ButtonClickEvent += (sender, e) =>
                {
                    var form = new HdlBackup.HdlBackupListForm();
                    form.AddForm();
                };
            }
#if Android
            row1 = new FrameRowControl(listView.rowSpace / 2);
            row1.UseClickStatu = false;
            listView.AddChidren(row1);
            row1.AddLeftCaption("上报GBS定位功能", 500);
            row1.AddBottomLine();
            var btnGbsSwitch = row1.AddMostRightSwitchIcon();
            if (System.IO.File.Exists(DirNameResourse.OpenGbsFile) == true)
            {
                btnGbsSwitch.IsSelected = true;
            }
            btnGbsSwitch.ButtonClickEvent += (sender, e) =>
            {
                this.ShowMassage(ShowMsgType.Confirm, "注意:开启或者关闭此功能会重启App", () =>
                {
                    btnGbsSwitch.IsSelected = !btnGbsSwitch.IsSelected;
                    if (btnGbsSwitch.IsSelected == true)
                    {
                        HdlFileLogic.Current.SaveTextToFile(DirNameResourse.OpenGbsFile, "nmsl");
                    }
                    else
                    {
                        HdlFileLogic.Current.DeleteFile(DirNameResourse.OpenGbsFile);
                    }
                    HDLUtils.RestartApp();
                });
            };
#endif
            row1 = new FrameRowControl(listView.rowSpace / 2);
            listView.AddChidren(row1);
            row1.AddLeftCaption("重置导入标识", 500);