Пример #1
0
        public void SetStoreContext(StoreManagerContext context)
        {
            _context = context;
            gridControl.DataSource = ListOfStoresView;

            if (_isfirstload)
            {
                _isfirstload = true;
                gridViewEntities.ExpandAllGroups();
            }

            if (Context.CurrentView != null)
            {
                SetFocusOnStoreById(Context.CurrentView.ID);
            }
        }
Пример #2
0
        public void InitContext()
        {
            gridControl.BeginUpdate();
            try
            {
                if (Context == null)
                {
                    _context = new StoreManagerContext();
                    _context.Init();


                    SetStoreContext(_context);
                }
            }
            finally
            {
                gridControl.EndUpdate();
            }
        }
Пример #3
0
 public void SetStoreContext(StoreManagerContext context)
 {
     m_context = context;
 }