Beispiel #1
0
        /// <summary>
        /// Loads the drop downs.
        /// </summary>
        private void LoadDropDowns(DataView dataView)
        {
            var entityTypeService = new EntityTypeService(new RockContext());

            ddlEntityType.Items.Clear();
            ddlEntityType.Items.Add(new ListItem(string.Empty, string.Empty));
            entityTypeService.GetEntityListItems().ForEach(l => ddlEntityType.Items.Add(l));
        }