private void RestoreDialog_OnRestoreBtnClick(object sender, EventArgs e) { RestoreDialog.Restored = RestoreWizard.Execute(); if (RestoreDialog.Restored) { WalletCreationProcess(!string.IsNullOrEmpty(FPasscode)); StartupExchangeProcess(); } }
public bool CheckIfWordIsValid(int aIndex, out string aWord) { aWord = null; string lLookingFor = "Word" + aIndex.ToString(); PropertyInfo prop = RestoreWizard.TwelveWordsControl.GetType().GetProperty(lLookingFor, BindingFlags.Public | BindingFlags.Instance); aWord = prop.GetValue(RestoreWizard.TwelveWordsControl, null).ToString(); if (string.IsNullOrEmpty(aWord)) { RestoreWizard.StandardInfoMsgBox("One or more boxes were empty, try again"); return(false); } return(true); }
protected override void ExecuteCore(SelectedItemCollection selection) { if ((wizard == null) || wizard.IsDisposed) { if (selection[0].Value is VM) { wizard = new RestoreWizard(selection[0].Value as VM); } else { wizard = new RestoreWizard(selection[0].Value as Host); } wizard.Show(); } else { } }
public bool ExecuteRestore() { if (OnRestoreInformationFromFile == null) { throw new InvalidOperationException("You must set the property OnRestoreInformationFromFile first"); } if (OnRestoreInformationFromFile == null) { throw new InvalidOperationException("You must set the property OnPasscodeEntropyFromWords first"); } return(RestoreWizard.Execute()); //if (RestoreDialog.Restored) //{ // WalletCreationProcess(!string.IsNullOrEmpty(FPasscode)); // StartupExchangeProcess(); //} }
private void RestoreWizard_OnCancelBtnClick(object sender, EventArgs e) { RestoreDialog.Close(); RestoreWizard.Close(); }
public void Dispose() { RestoreWizard.Dispose(); RestoreWizard = null; }