예제 #1
0
        public bool UnregisterSyncScrollGrid(string key, FastGridControl grid)
        {
            List <FastGridControl> grids;

            if (!syncScrollGroups.TryGetValue(key, out grids))
            {
                return(grids.Remove(grid));
            }

            return(false);
        }
예제 #2
0
        public static bool RegisterSyncScrollGrid(string key, FastGridControl grid)
        {
            List <FastGridControl> grids;

            if (syncScrollGroups.TryGetValue(key, out grids))
            {
                if (!grids.Contains(grid))
                {
                    grids.Add(grid);
                    return(true);
                }
            }
            else
            {
                syncScrollGroups.Add(key, new List <FastGridControl> {
                    grid
                });
                return(true);
            }

            return(false);
        }
예제 #3
0
 internal InvalidationContext(FastGridControl grid)
 {
     _grid = grid;
     _grid.EnterInvalidation();
 }