Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frm_subject_entry frm = new frm_subject_entry();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            DisplaySubjects();
        }
Beispiel #2
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            int               SubjID  = Convert.ToInt16(dataGridView3.Rows[SelectedRow].Cells[0].Value);
            Subject           subject = Subject.GetSubject(SubjID);
            frm_subject_entry frm     = new frm_subject_entry(subject);

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            DisplaySubjects();
        }