private void submit_Click(object sender, EventArgs e) { string account_number = accountNumberInput.Text; string pin = pinInput.Text; int returnValue = userActions.loginUser(account_number, pin); if (returnValue == 1) { Console.WriteLine("WELCOME USER USER"); var userDashboard = new userDashboard(); userDashboard.Show(); this.Hide(); } else if (returnValue == 2) { Console.WriteLine("welcome amdin"); var admin = new adminpanel.adminDashboard(); admin.Show(); this.Hide(); } else { Console.WriteLine("Email/password incorrect"); } }
private void TakeMeHomeCountryRoads_Click(object sender, EventArgs e) { var Home = new userDashboard(); Home.Show(); this.Hide(); }
private void home_Click(object sender, EventArgs e) { var Home = new userDashboard(); Home.Show(); this.Hide(); }