| | |
| | | listView.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listView);
|
| | |
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //从云端获取数据
|
| | | this.SetBackupInfoToForm();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <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);
|
| | |
| | | //文件恢复成功
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uFileRecoverSuccess);
|
| | | this.ShowMassage(ShowMsgType.Normal, msg);
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <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);
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //从云端获取数据
|
| | | this.SetBackupInfoToForm();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //从云端获取数据
|
| | | this.SetBackupInfoToForm();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | new System.Threading.Thread(() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //从云端获取数据
|
| | | this.SetBackupInfoToForm();
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | 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;
|
| | | }
|
| | |
| | | dialogForm.CloseDialog();
|
| | |
|
| | | //名字一样时,不处理
|
| | | if (txtvalue != fileInfo.BackupName)
|
| | | if (textValue != fileInfo.BackupName)
|
| | | {
|
| | | //编辑备份名称
|
| | | this.EditorBackInfo(fileInfo.Id, txtvalue);
|
| | | this.EditorBackInfo(fileInfo.Id, textValue);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | 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;
|
| | | }
|
| | |
| | | dialogForm.CloseDialog();
|
| | |
|
| | | //上传备份
|
| | | this.UpLoadBackInfo(txtvalue);
|
| | | this.UpLoadBackInfo(textValue);
|
| | | });
|
| | | }
|
| | |
|