Пример #1
0
        private void FillCombos()
        {
            ComboFunctions.FillSecGroupsComboExcRoot(ddlGroups);
            ComboFunctions.FillSubCompanyCombo(ddlSubCompany);

            ThemeList themeList = ThemeResolutionService.GetAvailableThemes();

            if (themeList.Count() > 0)
            {
                ddlThemes.DisplayMember    = "ThemeName";
                ddlThemes.ValueMember      = "ThemeName";
                ddlThemes.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
                ddlThemes.DataSource       = themeList.Distinct().Where(t => !t.ThemeName.EndsWith("*") && t.ThemeName != "BreezeExtended").OrderBy(t => t.ThemeName).ToList();
            }

            ddlThemes.SelectedIndex = -1;
            ddlThemes.NullText      = "Select";
            ddlGroups.SelectedIndex = -1;


            if (ddlSubCompany.Items.Count > 0)
            {
                chkAllowTransferBooking.Visible = true;
            }
        }