Beispiel #1
0
        private void LoadEntities()
        {
            gridControlEntities.BeginUpdate();
            try
            {
                BufferHoursList.Clear();
                if (EntityStore != null)
                {
                    List <BufferHours> cols = ClientEnvironment.StoreService.BufferHoursService.GetBufferHoursFiltered(EntityStore.ID, StartYear, EndYear);
                    if (SWController != null)
                    {
                        SWController.FillBufferHours(cols);
                    }

                    BufferHoursList.CopyList(cols);
                }
                if (gridControlEntities.DataSource == null)
                {
                    gridControlEntities.DataSource = BufferHoursList;
                }
            }
            finally
            {
                gridControlEntities.EndUpdate();
            }
            UpdateButtonState();
        }