Beispiel #1
0
 private void SeatViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     TrainStation.ViewModel.SeatViewModel SeatViewModelObject = new TrainStation.ViewModel.SeatViewModel();
     SeatViewModelObject.LoadSeatClasses();
     SeatViewModelObject.Station = stationViewModelObject;
     SeatViewControl.DataContext = SeatViewModelObject;
     Deb.Print("Seats view loaded");
 }
Beispiel #2
0
 private void VanViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     TrainStation.ViewModel.VanViewModel VanViewModelObject = new TrainStation.ViewModel.VanViewModel();
     VanViewModelObject.loadVanClasses();
     VanViewModelObject.Station = stationViewModelObject;
     VanViewControl.DataContext = VanViewModelObject;
     Deb.Print("Vans view loaded");
 }
Beispiel #3
0
 private void PassangerViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     TrainStation.ViewModel.PassangerViewModel passangerViewModelObject = new TrainStation.ViewModel.PassangerViewModel();
     PassangerViewModel.GlobalStation = stationViewModelObject;
     passangerViewModelObject.Station = stationViewModelObject;
     PassangerViewControl.DataContext = passangerViewModelObject;
     Deb.Print("Passanger view loaded");
 }
Beispiel #4
0
 private void TrainViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     TrainStation.ViewModel.TrainViewModel trainViewModelObject = new TrainStation.ViewModel.TrainViewModel();
     stationViewModelObject.LoadTrainList();
     trainViewModelObject.Station = stationViewModelObject;
     trainViewModelObject.getTrainList();
     TrainViewControl.DataContext = trainViewModelObject;
     Deb.Print("Trains view loaded");
 }
Beispiel #5
0
 private void TicketViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     Deb.Print("Ticket view loaded");
 }