Esempio n. 1
0
 public void OnGetQuote()
 {
     container = new BookingEngineContainer(_manager, _manager != SelectedProfile ? SelectedProfile : null, Breadcrumbs);
     BookingEnginePanel.Children.Add(container);
     container.CloseButton.Click += new System.Windows.RoutedEventHandler(CloseButton_Click);
 }
Esempio n. 2
0
        private void OpenQuoteControl(object arg)
        {
            QuoteControl quoteControlWindow = Kernel.Get<QuoteControl>();
            QuoteControlViewModel quoteControlVM = quoteControlWindow.DataContext as QuoteControlViewModel;
            quoteControlVM.DisplayChargesButton = false;
            quoteControlVM.DisplayDispatchButton = false;
            quoteControlVM.DisplayQuotationButton = false;
            quoteControlVM.BookingService = CommonBookingService;
            quoteControlVM.SelectedBooking = SelectedOpenedBookingDispatching.Booking;
            quoteControlVM.IssuedBy = string.Format("{0} {1} (UTC)", SelectedOpenedBookingDispatching.IssuedBy, SelectedOpenedBookingDispatching.IssueDate.ToString("ddd, dd MMM yyyy HH:mm"));
            quoteControlVM.AssociationName = SelectedOpenedBookingDispatching.AssociationName;
            quoteControlVM.AssociationId = SelectedOpenedBookingDispatching.AssociationId;
            quoteControlVM.ChangeBooking += (sender, e) =>
            {
                quoteControlWindow.Close();

                container = new BookingEngineContainer(SelectedOpenedBookingDispatching.BookingId, e.Value);
                BookingEnginePanel.Children.Add(container);
                container.CloseButton.Click += new System.Windows.RoutedEventHandler(CloseButton_Click);

            };

            quoteControlWindow.Show();
        }