Esempio n. 1
0
        /// <summary>
        /// Show login window. Login to wallet when login is entered. If users cancels, close application.
        /// </summary>
        private void ShowLogin()
        {
            var loginPrompt = new LoginPrompt();

            if (loginPrompt.ShowDialog(this) == DialogResult.OK)
            {
                Wallet.Login(loginPrompt.Password);
            }
            else
            {
                Close();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Show login window. Login to wallet when login is entered. If users cancels, close application.
 /// </summary>
 private void ShowLogin()
 {
     var loginPrompt = new LoginPrompt();
     if (loginPrompt.ShowDialog(this) == DialogResult.OK)
     {
         Wallet.Login(loginPrompt.Password);
     }
     else
     {
         Close();
     }
 }