Example #1
0
        private void 备份_Click(object sender, EventArgs e)
        {
            BackupForm backup = new BackupForm();

            backup.textBox2.Text = path;
            backup.ShowDialog();
        }
 public void Backup()
 {
     try
     {
         using (var modal = new BackupForm())
         {
             modal.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "OperationError".GetUiTranslation(), MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #3
0
        /// <summary>
        /// handle Click event to restore shortcut
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnRestore_Click(object sender, EventArgs e)
        {
            //Restore objRestore = new Restore();
            //objRestore.ShowDialog();

            var objBachup = new BackupForm();
            objBachup.ShowDialog();
        }
Example #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     this.Hide();
     BackupForm backform = new BackupForm();
     backform.ShowDialog();
 }
Example #5
0
 /// <summary>
 /// Show the form to backup the data
 /// </summary>
 private void BackupData()
 {
     BackupForm backup = new BackupForm();
     //backup.CurrentAuthenticator = this.Authenticator;
     backup.CurrentAuthenticatorFile = Config.Filename;
     backup.CurrentConfig = this.Config;
     backup.ShowDialog(this);
 }