Exemple #1
0
 public VehiclesByPriceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService)
     : base(myShuttleClient, locationService, applicationSettingService)
 {
 }
        public VehicleDetailViewModel(
            IMyShuttleClient myShuttleClient,
            //IUserInteraction userInteraction,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            //if (userInteraction == null)
            //{
            //    throw new ArgumentNullException("userInteraction");
            //}

            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            _myShuttleClient = myShuttleClient;
            //_userInteraction = userInteraction;
            _locationService          = locationService;
            ApplicationSettingService = applicationSettingService;

            this.InitializeCommands();
        }
Exemple #3
0
        protected VehiclesViewModelBase(
            IMyShuttleClient myShuttleClient,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }


            MyShuttleClient           = myShuttleClient;
            ApplicationSettingService = applicationSettingService;
            _locationService          = locationService;

            InitializeCommands();
            InitializeActions();
        }
        public MyRidesViewModel(
            IMyShuttleClient myShuttleClient,
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            if (messenger == null)
            {
                throw new ArgumentNullException("messenger");
            }

            _myShuttleClient           = myShuttleClient;
            _applicationSettingService = applicationSettingService;
            _messenger = messenger;

            _token = _messenger.Subscribe <ReloadDataMessage>(_ => InitializeActions());

            InitializeActions();

            InitializeCommands();
        }
        public CompanyRidesViewModel(IMyShuttleClient myShuttleClient, 
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
            : base(myShuttleClient, applicationSettingService,messenger)
	    {
            InitializeCommands();
	    }
 public CompanyRidesViewModel(IMyShuttleClient myShuttleClient,
                              IApplicationSettingServiceSingleton applicationSettingService,
                              IMvxMessenger messenger)
     : base(myShuttleClient, applicationSettingService, messenger)
 {
     InitializeCommands();
 }
        public MyRidesViewModel(
            IMyShuttleClient myShuttleClient, 
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            if (messenger == null)
            {
                throw new ArgumentNullException("messenger");
            }

            _myShuttleClient = myShuttleClient;
            _applicationSettingService = applicationSettingService;
            _messenger = messenger;

            _token = _messenger.Subscribe<ReloadDataMessage>(_ => InitializeActions());
            
            InitializeActions();

            InitializeCommands();
        }
Exemple #8
0
 public CameraViewModel(IMyShuttleClient myShuttleClient, DetailsViewModel details)
 {
     _random                   = new Random((int)DateTime.Now.Ticks);
     MyShuttleClient           = myShuttleClient;
     Details                   = details;
     DetectingCompletedCommand = new RelayCommand(DetectingCompleted);
     StartDetectingCommand     = new RelayCommand(StartDetecting);
 }
 public VehiclesByPriceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
 }
Exemple #10
0
 public VehiclesByDistanceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
 }
Exemple #11
0
 public CameraViewModel(IMyShuttleClient myShuttleClient, IApplicationDataRepository applicationDataRepository, DetailsViewModel details)
 {
     _random                   = new Random((int)DateTime.Now.Ticks);
     MyShuttleClient           = myShuttleClient;
     ApplicationDataRepository = applicationDataRepository;
     Details                   = details;
     DetectingCompletedCommand = new RelayCommand(DetectingCompleted);
     StartDetectingCommand     = new RelayCommand(StartDetecting);
 }
 public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
     IMvxPhoneCallTask phoneCallTask,
     IUserInteraction userInteraction,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
         phoneCallTask, userInteraction, locationService, applicationSettingService)
 {
     this.InitializeCommands();
 }
 public VehiclesInMapViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
     _switchSelectedVehicleCommand = new MvxCommand<int>(SwitchSelectedVehicle);
 }
Exemple #14
0
 public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
                               IMvxPhoneCallTask phoneCallTask,
                               IUserInteraction userInteraction,
                               ILocationServiceSingleton locationService,
                               IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
                                                                                                     phoneCallTask, userInteraction, locationService, applicationSettingService)
 {
     this.InitializeCommands();
 }
 public CameraViewModel(IMyShuttleClient myShuttleClient, IApplicationDataRepository applicationDataRepository, DetailsViewModel details)
 {
     _random = new Random((int)DateTime.Now.Ticks);
     MyShuttleClient = myShuttleClient;
     ApplicationDataRepository = applicationDataRepository;
     Details = details;
     DetectingCompletedCommand = new RelayCommand(DetectingCompleted);
     StartDetectingCommand = new RelayCommand(StartDetecting);
 }
Exemple #16
0
 public VehiclesInMapViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
     _switchSelectedVehicleCommand = new MvxCommand <int>(SwitchSelectedVehicle);
 }
Exemple #17
0
        public RideDetailViewModel(
            IMyShuttleClient myShuttleClient)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            _myShuttleClient = myShuttleClient;

            //_token = _messenger.Subscribe<ReloadDataMessage>(_ => InitializeActions());
            //InitializeActions();

            InitializeCommands();
        }
 public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
                               IMvxPhoneCallTask phoneCallTask,
                               IUserInteraction userInteraction,
                               ILocationServiceSingleton locationService,
                               IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
                                                                                                     phoneCallTask, userInteraction, locationService, applicationSettingService)
 {
     if (DesignMode.DesignModeEnabled)
     {
         CurrentVehicle = new Core.DocumentResponse.Vehicle
         {
             Make  = "A",
             Model = "B",
         };
     }
 }
        public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
            IMvxPhoneCallTask phoneCallTask,
            IUserInteraction userInteraction,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
                phoneCallTask, userInteraction, locationService, applicationSettingService)
        {

            if (DesignMode.DesignModeEnabled)
            {
                CurrentVehicle = new Core.DocumentResponse.Vehicle
                {
                    Make = "A",
                    Model = "B",
                };
            }

        }
        public VehicleDetailViewModel(
            IMyShuttleClient myShuttleClient,
            IMvxPhoneCallTask phoneCallTask,
            IUserInteraction userInteraction,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (phoneCallTask == null)
            {
                throw new ArgumentNullException("phoneCallTask");
            }

            if (userInteraction == null)
            {
                throw new ArgumentNullException("userInteraction");
            }

            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            _myShuttleClient = myShuttleClient;
            _phoneCallTask = phoneCallTask;
            _userInteraction = userInteraction;
            _locationService = locationService;
            ApplicationSettingService = applicationSettingService;

            this.InitializeCommands();
        }
Exemple #21
0
        public VehicleDetailViewModel(
            IMyShuttleClient myShuttleClient,
            IMvxPhoneCallTask phoneCallTask,
            IUserInteraction userInteraction,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (phoneCallTask == null)
            {
                throw new ArgumentNullException("phoneCallTask");
            }

            if (userInteraction == null)
            {
                throw new ArgumentNullException("userInteraction");
            }

            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            _myShuttleClient          = myShuttleClient;
            _phoneCallTask            = phoneCallTask;
            _userInteraction          = userInteraction;
            _locationService          = locationService;
            ApplicationSettingService = applicationSettingService;

            this.InitializeCommands();
        }
        public RideDetailViewModel(
            IMyShuttleClient myShuttleClient,
            IMvxMessenger messenger)
        {
            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (messenger == null)
            {
                throw new ArgumentNullException("messenger");
            }

            _myShuttleClient = myShuttleClient;
            _messenger = messenger;

            //_token = _messenger.Subscribe<ReloadDataMessage>(_ => InitializeActions());
            //InitializeActions();

            InitializeCommands();
        }
        protected VehiclesViewModelBase(
            IMyShuttleClient myShuttleClient,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
        {
            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            if (messenger == null)
            {
                throw new ArgumentNullException("messenger");
            }

            MyShuttleClient = myShuttleClient;
            ApplicationSettingService = applicationSettingService;
            _locationService = locationService;
            _messenger = messenger;

            _token = _messenger.Subscribe<ReloadDataMessage>(_ => InitializeActions());

            InitializeCommands();
            InitializeActions();
        }
        protected VehiclesViewModelBase(
            IMyShuttleClient myShuttleClient,
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
        {
            if (locationService == null)
            {
                throw new ArgumentNullException("locationService");
            }

            if (myShuttleClient == null)
            {
                throw new ArgumentNullException("myShuttleClient");
            }

            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            if (messenger == null)
            {
                throw new ArgumentNullException("messenger");
            }

            MyShuttleClient           = myShuttleClient;
            ApplicationSettingService = applicationSettingService;
            _locationService          = locationService;
            _messenger = messenger;

            _token = _messenger.Subscribe <ReloadDataMessage>(_ => InitializeActions());

            InitializeCommands();
            InitializeActions();
        }
 public MainViewModel(IMyShuttleClient myShuttleClient, DetailsViewModel details)
 {
     MyShuttleClient = myShuttleClient;
     Details = details;
     RefreshCommand = new RelayCommand(Refresh, CanRefresh);
 }
Exemple #26
0
 public MainViewModel(IMyShuttleClient myShuttleClient, DetailsViewModel details)
 {
     MyShuttleClient = myShuttleClient;
     Details         = details;
     RefreshCommand  = new RelayCommand(Refresh, CanRefresh);
 }
 public RideDetailViewModel(IMyShuttleClient myShuttleClient,
                            IMvxMessenger messenger) : base(myShuttleClient,
                                                            messenger)
 {
 }
 public RideDetailViewModel(IMyShuttleClient myShuttleClient, IMvxMessenger messenger)
     : base(myShuttleClient, messenger)
 {
     InitializeCommands();
 }
        public RideDetailViewModel(IMyShuttleClient myShuttleClient, IMvxMessenger messenger)
            : base(myShuttleClient, messenger)
	    {
	    }
Exemple #30
0
 public DetailsViewModel(IMyShuttleClient myShuttleClient, StatisticsViewModel statistics)
 {
     MyShuttleClient = myShuttleClient;
     Statistics      = statistics;
 }
 public DetailsViewModel(IMyShuttleClient myShuttleClient, StatisticsViewModel statistics)
 {
     MyShuttleClient = myShuttleClient;
     Statistics = statistics;
 }
        public RideDetailViewModel(IMyShuttleClient myShuttleClient, IMvxMessenger messenger)
            : base(myShuttleClient, messenger)
	    {
            InitializeCommands();
	    }