HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-09-30 404cdc88627f942df7944af04ee05b9d527752d6
ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlBackupMenuForm.cs
@@ -7,33 +7,36 @@
    /// <summary>
    /// 数据备份的菜单界面
    /// </summary>
    public class HdlBackupMenuForm : UserCenterCommonForm
    public class HdlBackupMenuForm : EditorCommonForm
    {
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        public void ShowForm()
        {
            //设置头部信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uDataBackup));
            //初始化中部信息
            this.InitMiddleFrame();
        }
        /// <summary>
        /// 初始化中部信息
        /// </summary>
        private void InitMiddleFrame()
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        public void ShowForm()
        {
            //设置头部信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uDataBackup));
            //初始化中部信息
            this.InitMiddleFrame();
        }
        /// <summary>
        /// 初始化中部信息
        /// </summary>
        private void InitMiddleFrame()
        {
            //清空bodyFrame
            this.ClearBodyFrame();
            //初始化【同步数据】行
            this.InitAutoBackupRow();
            //初始化【自定义备份】行
            this.InitManualBackupRow();
            //初始化【网关备份】行
            //this.InitGatewayBackupRow();
            this.InitAutoBackupRow();
            //初始化【自定义备份】行
            this.InitManualBackupRow();
            //初始化【网关备份】行
            //this.InitGatewayBackupRow();
        }
        /// <summary>
@@ -41,20 +44,21 @@
        /// </summary>
        private void InitAutoBackupRow()
        {
            var rowLayout = new StatuRowLayout();
            var rowLayout = new FrameRowControl();
            bodyFrameLayout.AddChidren(rowLayout);
            //底线
            rowLayout.AddBottomLine();
            //自动同步数据
            var txName = new RowCenterView(false);
            var txName = rowLayout.AddLeftCaption("", 800);
            txName.TextID = R.MyInternationalizationString.uAppAutoBackup;
            rowLayout.AddChidren(txName);
            rowLayout.AddRightIconControl();
            rowLayout.AddRightArrow();
            rowLayout.MouseUpEvent += (sender, e) =>
            rowLayout.ButtonClickEvent += (sender, e) =>
            {
                var form = new HdlAutoBackUpForm();
                this.AddForm(form);
                form.AddForm();
            };
        }
@@ -63,21 +67,23 @@
        /// </summary>
        private void InitManualBackupRow()
        {
            var rowLayout = new StatuRowLayout();
            var rowLayout = new FrameRowControl();
            rowLayout.Y = ControlCommonResourse.ListViewRowHeight;
            bodyFrameLayout.AddChidren(rowLayout);
            //底线
            rowLayout.AddBottomLine();
            //自定义备份
            var txName = new RowCenterView(false);
            var txName = rowLayout.AddLeftCaption("", 800);
            txName.TextID = R.MyInternationalizationString.uAppManualBackup;
            rowLayout.AddChidren(txName);
            rowLayout.AddRightIconControl();
            rowLayout.AddRightArrow();
            rowLayout.MouseUpEvent += (sender, e) =>
            rowLayout.ButtonClickEvent += (sender, e) =>
            {
                var form = new HdlManualBackUpForm();
                this.AddForm(form);
                form.AddForm();
            };
        }
@@ -86,21 +92,21 @@
        /// </summary>
        private void InitGatewayBackupRow()
        {
            var rowLayout = new StatuRowLayout();
            var rowLayout = new FrameRowControl();
            rowLayout.Y = ControlCommonResourse.ListViewRowHeight * 2;
            bodyFrameLayout.AddChidren(rowLayout);
            //网关备份
            var txName = new RowCenterView(false);
            var txName = rowLayout.AddLeftCaption("", 800);
            txName.TextID = R.MyInternationalizationString.uGatewayBackup;
            rowLayout.AddChidren(txName);
            rowLayout.AddRightIconControl();
            rowLayout.AddRightArrow();
            rowLayout.MouseUpEvent += (sender, e) =>
            rowLayout.ButtonClickEvent += (sender, e) =>
            {
                var form = new HdlGatewayListBackUpForm();
                this.AddForm(form);
                form.AddForm();
            };
        }
    }