Пример #1
0
        private void RestoreDialog_OnRestoreBtnClick(object sender, EventArgs e)
        {
            RestoreDialog.Restored = RestoreWizard.Execute();

            if (RestoreDialog.Restored)
            {
                WalletCreationProcess(!string.IsNullOrEmpty(FPasscode));

                StartupExchangeProcess();
            }
        }
Пример #2
0
        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);
        }
Пример #3
0
 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
     {
     }
 }
Пример #4
0
        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();
            //}
        }
Пример #5
0
 private void RestoreWizard_OnCancelBtnClick(object sender, EventArgs e)
 {
     RestoreDialog.Close();
     RestoreWizard.Close();
 }
Пример #6
0
 public void Dispose()
 {
     RestoreWizard.Dispose();
     RestoreWizard = null;
 }