コード例 #1
0
        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 { }
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        private void btnViewClass_Click(object sender, EventArgs e)
        {
            frmClass fn = new frmClass();

            fn.ShowDialog();
        }