Beispiel #1
0
        public IEnumerable <StoreMetadata> GetAllMetadata(bool filterEnabled)
        {
            IEnumerable <StoreMetadata> visibleStores;

            if (filterEnabled)
            {
                var invisibleStoreFilters = excludedStoresService.GetAll();
                visibleStores = GetFilteredMetadata(invisibleStoreFilters);
            }
            else
            {
                visibleStores = GetFilteredMetadata();
            }

            foreach (var info in visibleStores)
            {
                info.Rows = DynamicDataStoreFactory.Instance.GetStore(info.Name).Items().Count();
                yield return(info);
            }
        }
Beispiel #2
0
 private void LoadData()
 {
     list.DataSource = excludedStoresService.GetAll();
     list.DataBind();
 }