public UpdateStationWindow(IBL _bl, BL.BO.Station _station) { InitializeComponent(); this.bl = _bl; this.originalStation = _station; this.codeTextBlock.Text = _station.Code.ToString(); }
private void btStationLins_Click(object sender, RoutedEventArgs e) { this.station = (sender as Button).DataContext as BL.BO.Station; Station_Details_Window window = new Station_Details_Window(this.bl, this.station); window.Show(); }
public Station_Details_Window(IBL _bl, BL.BO.Station _station) { InitializeComponent(); this.bl = _bl; this.station = _station; tbStation.Text = this.station.Code.ToString(); lineDataGrid.ItemsSource = bl.GetAllLinesCodeLastStation(this.station); }
private void stationDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { this.station = (sender as DataGrid).SelectedItem as BL.BO.Station; btnUpdateStation.IsEnabled = true; btnDeleteStation.IsEnabled = true; }
public AddStationWindow(IBL _bl) { InitializeComponent(); this.bl = _bl; this.newStation = new BL.BO.Station(); }