Exemplo n.º 1
0
        public MyRidesViewModel(
            IMyRidesViewModel myRidesViewModel)
        {
            MyRidesVM = myRidesViewModel;

            InitializeCommands();
        }
        public MyRidesViewModel(
            IMyRidesViewModel myRidesViewModel)
        {
            MyRidesVM = myRidesViewModel;

            InitializeCommands();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
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();
        }