コード例 #1
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();
        }