Пример #1
0
        public override void DataBind()
        {
            if (EntityType == null)
            {
                throw new InvalidOperationException("Cannot bind without setting EntityType");
            }

            var stores         = CachelessStore.GetStoreList();
            var mappedStoreIds = stores
                                 .Where(store => store.IsMapped(this.EntityType, this.ObjectID))
                                 .Select(store => store.StoreID)
                                 .ToArray();

            ssMain.SelectedStoreIDs = mappedStoreIds;
        }
Пример #2
0
        protected override void OnInit(EventArgs e)
        {
            Stores = CachelessStore.GetStoreList();

            base.OnInit(e);
        }