예제 #1
0
 public void showReservationWindow(int carId)
 {
     if (makeReservation == null)
     {
         makeReservation = new MakeReservation(MyController, this, carId);
     }
     contentControl.Content = makeReservation;
 }
예제 #2
0
 public void closeReservationWindow()
 {
     if (carAvailableList == null)
     {
         carAvailableList = new CarAvailableList(MyController, this);
     }
     contentControl.Content = carAvailableList;
     if (makeReservation != null)
     {
         makeReservation = null;
     }
 }