示例#1
0
 private void CampFilter_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (this.TimeTable_Grid != null)
     {
         //Get selected index
         int selInt = CampFilter.SelectedIndex;
         //get selection as Category enum
         Campus selCamp = (Campus)selInt;
         if (selInt != 0)
         {
             this.TimeTable_Grid.ItemsSource = Listcontroler.FilterClassListByCampus(UnfilteredTimeTable, selCamp);
         }
         else
         {
             this.TimeTable_Grid.ItemsSource = UnfilteredTimeTable;
         }
     }
 }