Пример #1
0
        private void toolStripButton9_Click(object sender, EventArgs e)
        {
            var ac = new AddCourse();

            ac.ShowDialog();
            int position = courseBS.Position;

            refreshCourses_Click(null, null);
            courseBS.Position = position;
        }
Пример #2
0
        private void toolStripButton10_Click(object sender, EventArgs e)
        {
            var ac = new AddCourse("Update Course", ((Course)(courseBS.Current)).CourseID,
                                   ((Course)(courseBS.Current)).CourseName, ((Course)(courseBS.Current)).TimeSlot,
                                   ((Course)(courseBS.Current)).DaysOfWeek, ((Course)(courseBS.Current)).ProfID, 1);

            ac.ShowDialog();
            int position = courseBS.Position;

            refreshCourses_Click(null, null);
            courseBS.Position = position;
        }