Esempio n. 1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            Instructor         cur   = new Instructor();
            FormInstructorEdit FormI = new FormInstructorEdit(cur);

            FormI.IsNew = true;
            FormI.ShowDialog();
            if (FormI.DialogResult != DialogResult.OK)
            {
                return;
            }
            changed = true;
            FillList();
            listInstructors.SelectedIndex = -1;
        }
Esempio n. 2
0
        private void listInstructors_DoubleClick(object sender, System.EventArgs e)
        {
            if (listInstructors.SelectedIndex == -1)
            {
                return;
            }
            FormInstructorEdit FormI = new FormInstructorEdit(Instructors.List[listInstructors.SelectedIndex]);

            FormI.ShowDialog();
            if (FormI.DialogResult != DialogResult.OK)
            {
                return;
            }
            changed = true;
            FillList();
        }