コード例 #1
0
        // Constructors
        public MainViewModel(
            IVehiclesByDistanceViewModel vehiclesByDistanceViewModel,
            IVehiclesByPriceViewModel vehiclesByPriceViewModel,
            IVehiclesInMapViewModel vehiclesInMapViewModel,
            IMyRidesViewModel myRidesViewModel,
            ICompanyRidesViewModel companyRidesViewModel
            )
        {
            this.VehiclesByDistanceViewModel = vehiclesByDistanceViewModel;
            this.VehiclesByPriceViewModel    = vehiclesByPriceViewModel;
            this.VehiclesInMapViewModel      = vehiclesInMapViewModel;
            this.MyRidesViewModel            = myRidesViewModel;
            this.CompanyRidesViewModel       = companyRidesViewModel;

            InitializeCommands();
        }
コード例 #2
0
        public MainViewModel(
            IVehiclesByDistanceViewModel vehiclesByDistanceViewModel,
            IVehiclesByPriceViewModel vehiclesByPriceViewModel,
            IMyRidesViewModel myRidesViewModel,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            VehiclesByDistanceViewModel = vehiclesByDistanceViewModel;
            VehiclesByPriceViewModel    = vehiclesByPriceViewModel;
            MyRidesViewModel            = myRidesViewModel;
            _locationService            = locationService;
            _applicationSettingService  = applicationSettingService;
            VehiclesByDistanceViewModel.PropertyChanged += VehiclesByDistanceViewModel_PropertyChanged;
            VehiclesByPriceViewModel.PropertyChanged    += VehiclesByPriceViewModel_PropertyChanged;
            MyRidesViewModel.PropertyChanged            += MyRidesViewModel_PropertyChanged;

            InitializeCommands();
        }
コード例 #3
0
        public MainViewModel(
            IVehiclesByDistanceViewModel vehiclesByDistanceViewModel,
            IVehiclesByPriceViewModel vehiclesByPriceViewModel,
            IMyRidesViewModel myRidesViewModel,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            VehiclesByDistanceViewModel = vehiclesByDistanceViewModel;
            VehiclesByPriceViewModel = vehiclesByPriceViewModel;
            MyRidesViewModel = myRidesViewModel;
            _locationService = locationService;
            _applicationSettingService = applicationSettingService;
            VehiclesByDistanceViewModel.PropertyChanged += VehiclesByDistanceViewModel_PropertyChanged;
            VehiclesByPriceViewModel.PropertyChanged += VehiclesByPriceViewModel_PropertyChanged;
            MyRidesViewModel.PropertyChanged += MyRidesViewModel_PropertyChanged;

            InitializeCommands();
        }