private void cbArea_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         this.area      = (BL.BO.Areas)(int) cbArea.SelectedValue;
         this.lineTrips = bl.GetAllLinesTrip(_lineTrip =>
                                             _lineTrip.Area == (BL.BO.Areas) this.area, this.lineTrips);
         lineTripDataGrid.ItemsSource = this.lineTrips;
     }
     catch (BL.BO.BadLineTripException ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void areaComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     this.area = (BL.BO.Areas)areaComboBox.SelectedValue;
 }
Esempio n. 3
0
 private void areaComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     BL.BO.Areas area = (BL.BO.Areas)areaComboBox.SelectedIndex;
     bl.UpdateLine(this.line.LineID, area);
 }