private void viewStudentClassToolStripMenuItem_Click(object sender, EventArgs e) { try { string eid = lvStudents.FocusedItem.SubItems[0].Text; frmClass fs = new frmClass(eid); if (fs.ShowDialog() == DialogResult.OK) { searchStudents(); } } catch { } }
private void btnViewClass_Click(object sender, EventArgs e) { frmClass fn = new frmClass(); fn.ShowDialog(); }