Esempio n. 1
0
        private void cmb_srchPlayerLeague_SelectedIndexChanged(object sender, EventArgs e)
        {
            int filterId = -1;

            if (cmb_srchPlayerLeague.SelectedValue != null)
            {
                DropDownOption selectedOption = cmb_srchPlayerLeague.SelectedValue as DropDownOption;
                filterId = selectedOption.Id;
            }
            cmb_srchPlayerClub.DataSource = DropDownHelper.GetClubs(filterId);
        }
Esempio n. 2
0
        public SearchList()
        {
            InitializeComponent();
            HideSearchForm();
            cmb_srchPlayerQuality.DataSource = DropDownHelper.GetQualities();
            cmb_srchPlayerRarity.DataSource  = DropDownHelper.GetRarities();
            cmb_srchPlayerLeague.DataSource  = DropDownHelper.GetLeagues();
            cmb_srchPlayerClub.DataSource    = DropDownHelper.GetClubs();

            var abSettings = new List <DropDownOption>
            {
                new DropDownOption {
                    Id = -1, DisplayValue = "-- AB Setting --"
                }
            };

            abSettings.AddRange(SettingDAL.GetSettings().Select(a => new DropDownOption {
                Id = a.PkId, DisplayValue = a.Name
            }));
            cmb_abSettings.DataSource = abSettings;

            ac_playerName.DataSource = SearchDAL.GetPlayersForAutoSuggest().Select(a => a.DisplayName).Distinct().ToList();
        }