public PrintPreviewViewModel() { TripDetailsViewModel = new TripDetailsViewModel(); PaymentDetailsViewModel = new PaymentDetailsViewModel(); PassengersViewModel = new PassengersViewModel(); }
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(); }