private void mnBookFlight_Click(object sender, RoutedEventArgs e) { BookFlightWindow wBookFlight = new BookFlightWindow(); wBookFlight.User = User; ShowDialogWindow(wBookFlight); }
private void mnTickets_Click(object sender, RoutedEventArgs e) { TicketsManagementWindow wTicketsManagement = new TicketsManagementWindow(); ShowDialogWindow(wTicketsManagement); if (wTicketsManagement.IsAddTicket) { BookFlightWindow wBookFlight = new BookFlightWindow(); wBookFlight.User = User; ShowDialogWindow(wBookFlight); } }