private void CreateTabColor_OnChange(object sender, CourseInfoEventArgs e)
 {
     this.determineCurrentTabsPriority(e);
     this.ClassesTabControl.Invalidate(this.ClassesTabControl.GetTabRect(this.ClassesTabControl.SelectedIndex));
     this.controller.UpdateSelectedCoursesTasks(this.ClassesTabControl.SelectedTab.Text, e.Tasks, e.Priority);
     this.ClassInformation.Text = this.controller.UpdateClassesOutput();
 }
 private void determineCurrentTabsPriority(CourseInfoEventArgs e)
 {
     if (e.Priority == (int)Priority.High)
     {
         this.ClassesTabControl.SelectedTab.Tag = Priority.High;
     }
     else if (e.Priority == (int)Priority.Medium)
     {
         this.ClassesTabControl.SelectedTab.Tag = Priority.Medium;
     }
     else
     {
         this.ClassesTabControl.SelectedTab.Tag = Priority.Low;
     }
 }
 private void processTaskChange(object sender, CourseInfoEventArgs e)
 {
     this.controller.UpdateSelectedCoursesTasks(this.ClassesTabControl.SelectedTab.Text, e.Tasks, e.Priority);
     this.ClassInformation.Text = this.controller.UpdateClassesOutput();
 }