Exemplo 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();
            }
        }
Exemplo 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();
     }
 }