void Login_button_Click(object sender, EventArgs e) { // var intent = new Intent(this, typeof(LeaveSummaryPage)); // intent.PutStringArrayListExtra("leave_summary", leave_info); // StartActivity(intent); Notification_msg notif = new Notification_msg(); if (user_ID.Text == "@string/user") { if (password.Text == "@string/user_pswrd") { //Display login successfull notification notif.ShowLoginSuccessfull(); // Set our view from the "main" layout resource SetContentView(Resource.Layout.LeaveSummary); } else { //Display incorrect password notification notif.ShowInvalidPassword(); } } else { //Display incorrect user id notification notif.ShowIncorrectUserID(); } }
void Login_button_Click (object sender, EventArgs e) { // var intent = new Intent(this, typeof(LeaveSummaryPage)); // intent.PutStringArrayListExtra("leave_summary", leave_info); // StartActivity(intent); Notification_msg notif = new Notification_msg(); if (user_ID.Text == "@string/user") { if (password.Text == "@string/user_pswrd") { //Display login successfull notification notif.ShowLoginSuccessfull(); // Set our view from the "main" layout resource SetContentView (Resource.Layout.LeaveSummary); } else { //Display incorrect password notification notif.ShowInvalidPassword(); } } else{ //Display incorrect user id notification notif.ShowIncorrectUserID(); } }