示例#1
0
 private void BackupWizard_OnButtonCopyClick(object sender, EventArgs e)
 {
     Clipboard.SetText(F12Words);
     BackupWizard.CopiLabelVisibility = true;
     Task.Run(() =>
     {
         Thread.Sleep(500);
         BackupWizard.BeginInvoke(new MethodInvoker(delegate() { BackupWizard.CopiLabelVisibility = false; }));
     });
 }
示例#2
0
 public bool Execute()
 {
     if (PasscodeEntrapyAs12Numbers == null || PasscodeEntrapyAs12Numbers.Length == 12)
     {
         throw new InvalidOperationException("You must set the property PasscodeEntrapyAs12Numbers first");
     }
     if (OnCreateBackup == null)
     {
         throw new InvalidOperationException("You must set the property OnCreateBackup first");
     }
     return(BackupWizard.Execute());
 }
示例#3
0
        protected override void ExecuteCore(SelectedItemCollection selection)
        {
            if ((wizard == null) || wizard.IsDisposed)
            {
                if (selection[0].Value is VM)
                {
                    wizard = new BackupWizard(selection[0].Value as VM);
                }
                else
                {
                    wizard = new BackupWizard(selection[0].Value as Host);
                }

                wizard.Show();
            }
            else
            {
            }
        }
示例#4
0
 private void BackupWizard_OnCancelBtnClick(object sender, EventArgs e)
 {
     BackupWizard.Close();
 }
示例#5
0
 public void Dispose()
 {
     BackupWizard.Dispose();
     BackupWizard = null;
 }