private void DoLogin(object sender, EventArgs e) { string cardNumber = view.CardNumber; string password = view.Password; if (this.CheckLogin(cardNumber, password)) { // login successfully view.DisplayPaymentHistory(); } else { // try again! view.DisplayTryAgain(); } }