Exemple #1
0
        private void LoadState()
        {
            LookupsService service = new LookupsService();

            List<StateLookupsDTO> states = service.GetStates(Convert.ToInt32(cmbCountry.SelectedValue));

            states.Insert(0, new StateLookupsDTO { StateId = 0, StateName = "-- Select a state --" });

            cmbState.DataSource = states;
            cmbState.DisplayMember = "StateName";
            cmbState.ValueMember = "StateId";
            cmbState.SelectedIndex = 0;
        }
Exemple #2
0
        private void LoadCountry()
        {
            LookupsService service = new LookupsService();

            List<CountryLookupsDTO> countries = service.GetCountries();

            countries.Insert(0, new CountryLookupsDTO { CountryId = 0, CountryName = "-- Select a country --" });

            cmbCountry.DataSource = countries;
            cmbCountry.DisplayMember = "CountryName";
            cmbCountry.ValueMember = "CountryId";
            cmbCountry.SelectedIndex = 0;
        }
        public JourneyViewModel()
        {
            Journey         = new JourneyDTO();
            _journeyService = new JourneyService();
            _driverList     = new List <UserDTO>();
            _vehicleList    = new List <VehicleDTO>();
            _lookService    = new LookupsService();

            _driverList  = _lookService.GetDrivers();
            _vehicleList = _lookService.GetVehicles();

            GetPlacesCommand = new Command <string>(async(param) => await GetPlacesByName(param));
            ShowListView     = false;
            ShowOthers       = !ShowListView;
        }
Exemple #4
0
        public ApiClient(CheckoutConfiguration configuration, IApiHttpClient httpClient)
        {
            CheckoutConfiguration = configuration;
            ApiHttpClient         = httpClient;

            CardService              = new CardService(ApiHttpClient, CheckoutConfiguration);
            ChargeService            = new ChargeService(ApiHttpClient, CheckoutConfiguration);
            CustomerService          = new CustomerService(ApiHttpClient, CheckoutConfiguration);
            LookupsService           = new LookupsService(ApiHttpClient, CheckoutConfiguration);
            PayoutsService           = new PayoutsService(ApiHttpClient, CheckoutConfiguration);
            RecurringPaymentsService = new RecurringPaymentsService(ApiHttpClient, CheckoutConfiguration);
            ReportingService         = new ReportingService(ApiHttpClient, CheckoutConfiguration);
            TokenService             = new TokenService(ApiHttpClient, CheckoutConfiguration);

            ContentAdaptor.Setup();
        }
        public PassengerViewModel()
        {
            try
            {
                Passenger         = new PassengerDTO();
                _passengerService = new PassengerService();
                _countryList      = new List <CountryDTO>();
                _lookService      = new LookupsService();

                _countryList = _lookService.GetCountry();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
 public UploadLookupsPage()
 {
     _lookupsService = new LookupsService();
     InitializeComponent();
 }
Exemple #7
0
 public LookupsServiceTests()
 {
     _moisContext    = new MoisContext(CreateNewContextOptions());
     _lookupsService = new LookupsService(_moisContext);
     PrepareData();
 }