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