コード例 #1
0
 public PrintPreviewViewModel()
 {
     TripDetailsViewModel = new TripDetailsViewModel();
     PaymentDetailsViewModel = new PaymentDetailsViewModel();
     PassengersViewModel = new PassengersViewModel();
 }
コード例 #2
0
        public QuoteControlViewModel()
        {
            IsBusy = false;
            TripDetailsViewModel = new TripDetailsViewModel();
            TripAssistViewModel = new TripAssistViewModel();
            PaymentDetailsViewModel = new PaymentDetailsViewModel();
            PaymentDetailsViewModel.OnBookingPaymentChanged += (o, pe) =>
            {
                _paymentLongHeader = String.Format("   Payment" + Environment.NewLine + ((PaymentMethodEventArgs)pe).PaymentMethod);
                PaymentHeader = _paymentLongHeader ?? _paymentShortHeader;
            };
            PassengersViewModel = new PassengersViewModel();
            RegisterCommands();

        }