private void btnLogin(object sender, EventArgs e) { UserLog ul = new UserLog(); ul.setUsername(username.Text); ul.setPassword(password.Text); if (username.Text == "" || password.Text == "") { MessageBox.Show("Empty Fields Detected ! Please fill up all the fields"); return; } else if (LoginValidator.isMaster(ul)) { LoginInfo.UserID = username.Text; frmMain form1 = new frmMain(); form1.Show(); this.Hide(); } else { bool r = LoginValidator.validateLogin(ul); if (r) { frmMain form1 = new frmMain(); form1.Show(); this.Hide(); } else { MessageBox.Show("Incorrect Login Credentials"); } } }
private void btnSave_Click(object sender, EventArgs e) { frmMain form10 = new frmMain(); form10.Show(); this.Dispose(); }
private void btnNext_Click(object sender, EventArgs e) { frmMain frm = new frmMain(); frm.Show(); this.Hide(); }
private void btnBack_Click(object sender, EventArgs e) { frmMain formMain = new frmMain(); formMain.Show(); this.Hide(); }