t32 (labelLessonNum.Content) ,. SelectedItem.ToString ()) == false) MessageBox.Show ( невдало Додати урок. Можливо в цею годину для групи Вже встановл Інший урок );
}
}
{. Show ( Неможливо Додати урок до Розкладая );
}
} void buttonNumInc_Click (object sender, RoutedEventArgs e)
{. Content=++ _ LessonNum;
} void buttonNumDec_Click (object sender, RoutedEventArgs e)
{(_ LessonNum gt; 1) labelLessonNum.Content=--_ LessonNum;
}
void buttonEditSpeciality_Click (object sender, RoutedEventArgs e)
{(ComboBoxInstitute.SelectedItem!=null)
{speciality=new AddTeacherWindow (ComboBoxInstitute.SelectedItem.ToString ()) ;. Show ();
}
} void Button_Click_1 (object sender, RoutedEventArgs e)
{editWindow=new EditInstityteWindow () ;. Show ();
}}}
Додаток В
System;System.Collections.Generic;System.Collections.ObjectModel;System.ComponentModel;System.Linq;System.Text;System.Threading;System.Windows;System.Windows.Controls;System.Windows.Data;System.Windows.Documents;System.Windows.Input;System.Windows.Media;System.Windows.Media.Imaging;System.Windows.Shapes;Administration
{partial class StudentWindow: Window
{_ dataManager=SQLDataManager.GetInstance; List lt; Shedule gt; myList=new List lt; Shedule gt; (); string [] teachers=null; StudentWindow ()
{(); ();
} void GetInstance_EventChangeLessons ()
{(ComboBoxGroup.SelectedItem.ToString ());
} void SetGrid (string groupName)
{= _dataManager.GetShedule (groupName); view=CollectionViewSource.GetDefaultView (myList) ;. GroupDescriptions.Add (new PropertyGroupDescription ( DayName )) ;. ItemsSource=view;
} void GetInstance_EventChangedGroups ()
{();
} void ComboBoxInstitute_SelectionChanged (object sender, SelectionChangedEventArgs e)
{();
} void ComboBoxSpeciality_SelectionChanged (object sender, SelectionChangedEventArgs e)
{();
} void ComboBoxGroup_SelectionChanged (object sender, SelectionChangedEventArgs e)
{(ComboBoxGroup.SelectedItem!=null)
{. IsEnabled=true;
}
{. IsEnabled=false;
} groupName=string.Empty; {groupName=ComboBoxGroup.SelectedItem.ToString (); } {} (groupName);
} void SetComboInstitutes ()
{. ItemsSource=_dataManager.GetInstituteList () ;. SelectedIndex=0;
} void SetComboSpecialities ()
{. ItemsSource=_dataManager.GetSpecialityList (ComboBoxInstitute.SelectedItem.ToString ()) ;. SelectedIndex=0;
} void SetComboGroups ()
{specialityName=string.Empty; (ComboBoxSpeciality.SelectedItem!=null) specialityName=ComboBoxSpeciality.SelectedItem.ToString () ;. ItemsSource=_dataManager.GetGroupList (specialityName) ;. SelectedIndex=0;
} void buttonCancel_Click (object sender, RoutedEventArgs e)
{();
} void buttonPrint_Click (object sender, RoutedEventArgs e)
{(ComboBoxGroup.SelectedItem!=null)
{printing=new PrintSheduleWindow (); lt; Shedule gt; list; lt; Shedule gt; grid=new List lt; Shedule gt; (); (var data in gridContent.Items) .Add ((Shedule) data); (grid.Count gt; 0)
{(grid.Count gt; 40)
{= new List lt; Shedule gt; (); (int index=0; index lt; 40; index ++)
{. Add ((Shedule) grid [0]) ;. RemoveAt (0);
}
}
{= new List lt; Shedule gt; (); (var data in grid) .Add ((Shedule) data) ;. Clear ();
}. Show () ;. Print (list, new string [] {ComboBoxInstitute.SelectedItem.ToString (), ComboBoxSpeciality.SelectedItem.ToString (), ComboBoxGroup.SelectedItem.ToString ()});.Hide ();
}
}
}
}
}
Додаток Г
Анотація
У бакалаврській работе розробл...