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; })); }); }
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()); }
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 { } }
private void BackupWizard_OnCancelBtnClick(object sender, EventArgs e) { BackupWizard.Close(); }
public void Dispose() { BackupWizard.Dispose(); BackupWizard = null; }