コード例 #1
0
        public EditViewModel()
        {
            travelerService = DependencyManager.Container.Resolve <ITravelerService>();

            CancelCommand      = new RelayCommand(Cancel);
            SaveCommand        = new RelayCommand(SaveData);
            LoadPictureCommand = new RelayCommand(LoadPictureFromFile);
        }
コード例 #2
0
 public TravelerController(ITravelerService travelerService,
                           ITravelerQueries travelerQueries,
                           IMapperService mapper)
 {
     _travelerService = travelerService;
     _travelerQueries = travelerQueries;
     _mapper          = mapper;
 }
コード例 #3
0
 public ServiceManager(CQRSContext cQRSContext, ITravelerService travelerService,
                       IBookingService bookingService,
                       ISeatService seatService,
                       IPlaneService planeService,
                       IFlightService flightService,
                       IEventService eventService)
 {
     _cQRSContext    = cQRSContext;
     _travelService  = travelerService;
     _bookingService = bookingService;
     _seatService    = seatService;
     _planeService   = planeService;
     _flightService  = flightService;
     _eventService   = eventService;
 }
コード例 #4
0
        public MainViewModel()
        {
            travelerService = DependencyManager.Container.Resolve <ITravelerService>();
            editView        = DependencyManager.Container.Resolve <EditViewModel>();

            NewTravelerCmd     = new RelayCommand(NewTraveler);
            EditTravelerCmd    = new RelayCommand(EditTraveler);
            editView.OnCancel += EditCancelled;
            editView.OnSave   += EditCommitted;

            // Work around bug in WPF where SizeToContent somehow disable Interation.EventTriggers
            if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
            {
                RefreshData();
            }
        }
コード例 #5
0
 public QueryHandler(ITravelerService travelerService)
 {
     _travelerService = travelerService;
 }