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 InsertClass(object sender, EventArgs e) { frmClass Class = new frmClass(); if (DialogResult.OK == Class.ShowDialog()) { if (!ReferenceTypeExists(Class.ClassName)) { rtbClassGenerator.SelectedText = Class.ClassText; mlstReferenceMembers.Add(Class.ClassName); mlstReferenceMembersType.Add(Types.Class); } else { MessageBox.Show("Class '" + Class.ClassName + "' already added."); } } Class.Close(); }
private void btnViewClass_Click(object sender, EventArgs e) { frmClass fn = new frmClass(); fn.ShowDialog(); }