private void viewDatabaseHistoryToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); MainStudentForm mainStudentForm = new MainStudentForm(); mainStudentForm.Show(); }
private void studentRecordToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); MainStudentForm mainForm = new MainStudentForm(); mainForm.Show(); }
private void btnLogin_Click(object sender, EventArgs e) { loginUser.Username = txtUsername.Text; loginUser.Password = txtPassword.Text; dt = operations.login(loginUser); if (dt.Rows.Count > 0) { MessageBox.Show("Welcome, " + loginUser.Username.ToUpperInvariant()); this.Hide(); MainStudentForm landingPage = new MainStudentForm(); landingPage.Show(); } else { MessageBox.Show("Check your username and password"); } }