Exemple #1
0
        private void fmSearch_Load(object sender, EventArgs e)
        {
            _tourCategoryBs.DataSource     = _entry;
            _tourCategoryClb.DisplayMember = "name";

            _destinationBs.DataSource     = _detinations;
            _destinationClb.DisplayMember = "city";

            _minPriceUD.Value = (decimal)_minPrice;
            _maxPriceUD.Value = (decimal)_maxPrice + 1;

            _transportPresenter.loadAllActiveTransports();

            _tourGroupSearchPresenter.loadMinDepartDate();
            _tourGroupSearchPresenter.loadMaxReturnDate();

            _countriesBs.DataSource    = GlobalCountries.getAllCCountries();
            _countriesCb.DisplayMember = "name";

            _customerSearchpresenter.loadAllCustomer();
            setEnableSaveBtn(false);

            //_startDtp.Value = _minDepartDate;           // todo
            //_endDtp.Value = _maxReturnDate;             // todo
        }
Exemple #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            Countries = GlobalCountries.GetCountries();
            CountriesTableView.RegisterNibForCellReuse(CountryTableViewCell.Nib, CountryTableViewCell.Key);

            CountriesTableView.Source = new TableSource(Countries, NavController);
            CountriesTableView.ReloadData();

            CountriesSearchBar.AutocorrectionType = UITextAutocorrectionType.No;
            CountriesSearchBar.TextChanged       += CountriesSearchBar_TextChanged;

            ButtonReturn.TouchUpInside += ButtonReturn_TouchUpInside;
        }