コード例 #1
0
        public CompanyRidesViewModel(IMyShuttleClient myShuttleClient, 
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger)
            : base(myShuttleClient, applicationSettingService,messenger)
	    {
            InitializeCommands();
	    }
コード例 #2
0
        public SettingsViewModel(
            IApplicationSettingServiceSingleton applicationSettingService)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            //_messenger = messenger;
            //_userInteraction = userInteraction;

            this.InitializeCommands();
            this.InitializeActions();
        }
コード例 #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();
        }
コード例 #4
0
        //IMvxMessenger messenger)
        public CoreClient(
            IApplicationSettingServiceSingleton applicationSettingService,
            IApplicationStorageService applicationStorageService)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            _applicationStorageService = applicationStorageService;
            //_messenger = messenger;

            //_token = _messenger.Subscribe<ReloadDataMessage>(_ => Refresh());
        }
コード例 #5
0
 public CompanyRidesViewModel(IMyShuttleClient myShuttleClient,
                              IApplicationSettingServiceSingleton applicationSettingService,
                              IMvxMessenger messenger)
     : base(myShuttleClient, applicationSettingService, messenger)
 {
     InitializeCommands();
 }
コード例 #6
0
        public MyShuttleClient(
            IApplicationSettingServiceSingleton applicationSettingService,
            IApplicationStorageService applicationStorageService,
            IMvxMessenger messenger)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            _applicationStorageService = applicationStorageService;
            _messenger = messenger;

            _token = _messenger.Subscribe <ReloadDataMessage>(_ => Refresh());
        }
コード例 #7
0
ファイル: MyRidesViewModel.cs プロジェクト: priyanr/MyShuttle
        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();
        }
コード例 #8
0
 public VehiclesByPriceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService)
     : base(myShuttleClient, locationService, applicationSettingService)
 {
 }
コード例 #9
0
        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();
        }
コード例 #10
0
        public SettingsViewModel(
            IApplicationSettingServiceSingleton applicationSettingService,
            IMvxMessenger messenger, IUserInteraction userInteraction)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            _messenger       = messenger;
            _userInteraction = userInteraction;

            this.InitializeCommands();
            this.InitializeActions();
        }
コード例 #11
0
        public SettingsViewModel(
            IApplicationSettingServiceSingleton applicationSettingService, 
            IMvxMessenger messenger,IUserInteraction userInteraction)
        {
            
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            _messenger = messenger;
            _userInteraction = userInteraction;

            this.InitializeCommands();
            this.InitializeActions();
        }
コード例 #12
0
        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();
        }
コード例 #13
0
 public VehiclesByPriceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
 }
コード例 #14
0
 public VehiclesByDistanceViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
 }
コード例 #15
0
 public VehiclesInMapViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
     _switchSelectedVehicleCommand = new MvxCommand<int>(SwitchSelectedVehicle);
 }
コード例 #16
0
        //public LocationServiceSingleton(IApplicationSettingServiceSingleton applicationSettingService,
        //    IMvxLocationWatcher mvxLocationWatcher)
        //{
        //    if (applicationSettingService == null)
        //    {
        //        throw new ArgumentNullException("applicationSettingService");
        //    }

        //    _applicationSettingService = applicationSettingService;
        //    _watcher = mvxLocationWatcher;
        //}

        public LocationServiceSingleton(IApplicationSettingServiceSingleton appservice)
        {
            if (appservice == null)
            {
                throw new ArgumentException("appservice");
            }

            _applicationSettingService = appservice;
        }
コード例 #17
0
 public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
     IMvxPhoneCallTask phoneCallTask,
     IUserInteraction userInteraction,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
         phoneCallTask, userInteraction, locationService, applicationSettingService)
 {
     this.InitializeCommands();
 }
コード例 #18
0
 public VehicleDetailViewModel(IMyShuttleClient myShuttleClient,
                               IMvxPhoneCallTask phoneCallTask,
                               IUserInteraction userInteraction,
                               ILocationServiceSingleton locationService,
                               IApplicationSettingServiceSingleton applicationSettingService) : base(myShuttleClient,
                                                                                                     phoneCallTask, userInteraction, locationService, applicationSettingService)
 {
     this.InitializeCommands();
 }
コード例 #19
0
 public VehiclesInMapViewModel(
     IMyShuttleClient myShuttleClient,
     ILocationServiceSingleton locationService,
     IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger)
     : base(myShuttleClient, locationService, applicationSettingService, messenger)
 {
     _switchSelectedVehicleCommand = new MvxCommand <int>(SwitchSelectedVehicle);
 }
コード例 #20
0
ファイル: MovieClient.cs プロジェクト: dqube/moviemanager
        public MovieClient(IApplicationSettingServiceSingleton applicationSettingService)

        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }
            _applicationSettingService = applicationSettingService;
        }
コード例 #21
0
        public LocationServiceSingleton(IApplicationSettingServiceSingleton applicationSettingService, IMvxLocationWatcher mvxLocationWatcher)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            _applicationSettingService = applicationSettingService;
            _watcher = mvxLocationWatcher;
        }
コード例 #22
0
        public LocationServiceSingleton(IApplicationSettingServiceSingleton applicationSettingService, IMvxLocationWatcher mvxLocationWatcher)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

            _applicationSettingService = applicationSettingService;
            _watcher = mvxLocationWatcher;
        }
コード例 #23
0
        public MapViewModel(
            ILocationServiceSingleton locationService,
            IApplicationSettingServiceSingleton applicationSettingService,
            IVehiclesInMapViewModel vehiclesByDistanceViewModel)
        {
            _locationService            = locationService;
            _applicationSettingService  = applicationSettingService;
            VehiclesByDistanceViewModel = vehiclesByDistanceViewModel;

            InitializeCommands();
        }
コード例 #24
0
        public MapViewModel(
            ILocationServiceSingleton locationService, 
            IApplicationSettingServiceSingleton applicationSettingService,
            IVehiclesInMapViewModel vehiclesByDistanceViewModel)
        {
            _locationService = locationService;
            _applicationSettingService = applicationSettingService;
            VehiclesByDistanceViewModel = vehiclesByDistanceViewModel;

            InitializeCommands();
        }
コード例 #25
0
 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",
         };
     }
 }
コード例 #26
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();
        }
コード例 #27
0
        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",
                };
            }

        }
コード例 #28
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();
        }
コード例 #29
0
        public MyShuttleClient(
            IApplicationSettingServiceSingleton applicationSettingService,
            IApplicationStorageService applicationStorageService)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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



            _applicationSettingService = applicationSettingService;
            _applicationStorageService = applicationStorageService;
        }
        public ChangePositionPage()
        {
            this.InitializeComponent();

            _locationService           = Mvx.GetSingleton <ILocationServiceSingleton>();
            _applicationSettingService = Mvx.GetSingleton <IApplicationSettingServiceSingleton>();

            InitMap();
            InitializeNotifications();

            this.Loaded += (sender, e) =>
            {
                HardwareButtons.BackPressed += HardwareButtons_BackPressed;
            };

            this.Unloaded += (sender, e) =>
            {
                HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
            };
        }
コード例 #31
0
        public ChangePositionPage()
        {
            this.InitializeComponent();

            _locationService = Mvx.GetSingleton<ILocationServiceSingleton>();
            _applicationSettingService = Mvx.GetSingleton<IApplicationSettingServiceSingleton>();

            InitMap();
            InitializeNotifications();

            this.Loaded += (sender, e) =>
            {
                HardwareButtons.BackPressed += HardwareButtons_BackPressed;
            };

            this.Unloaded += (sender, e) =>
            {
                HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
            };
        }
コード例 #32
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();
        }
コード例 #33
0
        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();
        }
コード例 #34
0
        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();
        }
コード例 #35
0
 public SettingsViewModel(IApplicationSettingServiceSingleton applicationSettingService,
                          IMvxMessenger messenger, IUserInteraction userInteraction) : base(applicationSettingService,
                                                                                            messenger, userInteraction)
 {
 }
コード例 #36
0
 public SettingsViewModel(IApplicationSettingServiceSingleton applicationSettingService,
     IMvxMessenger messenger, IUserInteraction userInteraction) : base(applicationSettingService,
         messenger, userInteraction)
 {
 }
コード例 #37
0
        public MyShuttleClient(
            IApplicationSettingServiceSingleton applicationSettingService, 
            IApplicationStorageService applicationStorageService,
            IMvxMessenger messenger)
        {
            if (applicationSettingService == null)
            {
                throw new ArgumentNullException("applicationSettingService");
            }

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

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

            _applicationSettingService = applicationSettingService;
            _applicationStorageService = applicationStorageService;
            _messenger = messenger;

            _token = _messenger.Subscribe<ReloadDataMessage>(_ => Refresh());
        }
コード例 #38
0
        //public LocationServiceSingleton(IApplicationSettingServiceSingleton applicationSettingService, 
        //    IMvxLocationWatcher mvxLocationWatcher)
        //{
        //    if (applicationSettingService == null)
        //    {
        //        throw new ArgumentNullException("applicationSettingService");
        //    }

        //    _applicationSettingService = applicationSettingService;
        //    _watcher = mvxLocationWatcher;
        //}

        public LocationServiceSingleton (IApplicationSettingServiceSingleton appservice)
        {
            if (appservice == null) throw new ArgumentException("appservice");

            _applicationSettingService = appservice;
        }
コード例 #39
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();
        }