Exemplo n.º 1
0
        public override void doit()
        {
            _ep.Remove();
            AppForm.getAppForm().getCoursesTreeView().SelectedNode = _epg;

            foreach (Course course in _ep.Nodes)
            {
                if (course.getCoursesToHoldTogetherList().Count == 0)
                {
                    AppForm.CURR_OCTT_DOC.decrUnallocatedLessonsCounter(course.getNumberOfLessonsPerWeek());
                }
                else
                {
                    foreach (Course deepCourse in course.getCoursesToHoldTogetherList())
                    {
                        deepCourse.getCoursesToHoldTogetherList().Remove(course);
                    }
                }
            }

            AppForm.getAppForm().getStatusBarPanel2().Text         = AppForm.CURR_OCTT_DOC.getNumOfUnallocatedLessonsStatusText();
            AppForm.getAppForm().getTreeTabControl().SelectedIndex = 0;
        }