コード例 #1
0
        public async void GetDrivers(int maxPassengers)
        {
            viewModel.AddLimo(Constants.Sedan);
            viewModel.AddLimo(Constants.Suv);
            viewModel.AddLimo(Constants.UtilityVan);
            viewModel.AddLimo(Constants.DeluxeVan);
            viewModel.AddLimo(Constants.StretchVan);
            viewModel.AddLimo(Constants.Stretch);
            viewModel.AddLimo(Constants.LimoBus);
            viewModel.SelectedRideOption = viewModel.AvailableRideOptions[0];
            await DatabaseHelper.GetLimosInRadiusInTime(20, 10, Convert.ToDouble(viewModel._originLatitude), Convert.ToDouble(viewModel._originLongitude), maxPassengers);

            while (DatabaseHelper.driversInPastMin == null)
            {
            }
            this.availableDrivers = DatabaseHelper.driversInPastMin;
        }