private void mViewStudentBtn_Click(object sender, EventArgs e) { ViewStudent viewStudent = new ViewStudent(userId); this.Hide(); viewStudent.Show(); }
private void mLibViewBtn_Click(object sender, EventArgs e) { ViewStudent viewStudent = new ViewStudent(userId); this.Hide(); viewStudent.panel1.Visible = false; viewStudent.mLibAddStdBtn.Visible = true; viewStudent.mLibViewStdBtn.Visible = true; viewStudent.mAddStudentBtn.Visible = false; viewStudent.mLibViewStdBtn.Visible = false; viewStudent.mBackToDashBoard.Visible = true; viewStudent.Show(); }