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