Exemple #1
0
        private void RestoreDialog_OnRestoreBtnClick(object sender, EventArgs e)
        {
            RestoreDialog.Restored = RestoreWizard.Execute();

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

                StartupExchangeProcess();
            }
        }
Exemple #2
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();
            //}
        }