黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserCenter/HdlBackup/HdlManualBackUpForm.cs
@@ -56,12 +56,11 @@
            listView.Height = bodyFrameLayout.Height;
            bodyFrameLayout.AddChidren(listView);
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                //从云端获取数据
                this.SetBackupInfoToForm();
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -183,7 +182,7 @@
        /// <param name="BackupClassId"></param>
        private void LoadBackupInfo(string BackupClassId)
        {
            new System.Threading.Thread(async () =>
            HdlThreadLogic.Current.RunThread(async () =>
            {
                //从云端获取备份的文件
                bool result = await HdlBackupLogic.Current.LoadAppBackupInfo(BackupClassId);
@@ -206,8 +205,7 @@
                //文件恢复成功
                string msg = Language.StringByID(R.MyInternationalizationString.uFileRecoverSuccess);
                this.ShowMassage(ShowMsgType.Normal, msg);
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -220,7 +218,7 @@
        /// <param name="backName"></param>
        private void UpLoadBackInfo(string backName)
        {
            new System.Threading.Thread(async () =>
            HdlThreadLogic.Current.RunThread(async () =>
            {
                //创建一个备份名字
                string backupClassId = await HdlBackupLogic.Current.CreatNewBackupNameToDB(backName);
@@ -247,14 +245,12 @@
                    return;
                }
                new System.Threading.Thread(() =>
                HdlThreadLogic.Current.RunThread(() =>
                {
                    //从云端获取数据
                    this.SetBackupInfoToForm();
                })
                { IsBackground = true }.Start();
            })
            { IsBackground = true }.Start();
                });
            });
        }
        #endregion
@@ -288,12 +284,11 @@
                return;
            }
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                //从云端获取数据
                this.SetBackupInfoToForm();
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -326,12 +321,11 @@
                return;
            }
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                //从云端获取数据
                this.SetBackupInfoToForm();
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -352,14 +346,13 @@
            dialogForm.SetTitleText(Language.StringByID(R.MyInternationalizationString.uEditorBackup));
            //请输入备注名称
            dialogForm.SetTipText(Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup));
            dialogForm.InputText = fileInfo.BackupName;
            dialogForm.Text = fileInfo.BackupName;
            //按下确认按钮
            dialogForm.ComfirmClickEvent += (() =>
            dialogForm.ComfirmClickEvent += ((textValue) =>
            {
                string txtvalue = dialogForm.InputText;
                //检测备考名称
                if (this.CheckBackupName(txtvalue) == false)
                if (this.CheckBackupName(textValue) == false)
                {
                    return;
                }
@@ -368,10 +361,10 @@
                dialogForm.CloseDialog();
                //名字一样时,不处理
                if (txtvalue != fileInfo.BackupName)
                if (textValue != fileInfo.BackupName)
                {
                    //编辑备份名称
                    this.EditorBackInfo(fileInfo.Id, txtvalue);
                    this.EditorBackInfo(fileInfo.Id, textValue);
                }
            });
        }
@@ -391,11 +384,10 @@
            dialogForm.SetTipText(Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup));
            //按下确认按钮
            dialogForm.ComfirmClickEvent += (() =>
            dialogForm.ComfirmClickEvent += ((textValue) =>
            {
                string txtvalue = dialogForm.InputText;
                //检测备考名称
                if (this.CheckBackupName(txtvalue) == false)
                if (this.CheckBackupName(textValue) == false)
                {
                    return;
                }
@@ -404,7 +396,7 @@
                dialogForm.CloseDialog();
                //上传备份
                this.UpLoadBackInfo(txtvalue);
                this.UpLoadBackInfo(textValue);
            });
        }