示例#1
0
        private TableEditorGrid CreateGrid()
        {
            var grid = new TableEditorGrid {
                RowManager = new RowManager()
            };

            grid.DoubleBuffered(true);
            grid.CurrentCellBorderColor = Color.LightGreen;
            Controls.Add(grid);
            return(grid);
        }
示例#2
0
        private void UpdateDatasourceCore(TableEditorGrid grid, IFeatureSet fs)
        {
            var manager = grid.RowManager;

            int  cmnIndex  = manager.SortColumnIndex;
            bool ascending = manager.SortAscending;

            grid.SetTableSource(fs, grid.LayerHandle, grid.IsOgr);

            if (cmnIndex != -1)
            {
                grid.SortByColumn(cmnIndex, ascending);
            }
        }
示例#3
0
        public FindReplaceModel(TableEditorGrid grid, ILegendLayer layer, bool replace)
        {
            if (grid == null)
            {
                throw new ArgumentNullException("grid");
            }
            if (layer == null)
            {
                throw new ArgumentNullException("layer");
            }

            Grid       = grid;
            Replace    = replace;
            Table      = layer.FeatureSet.Table;
            SearchInfo = new SearchInfo();
            _layerName = layer.Name;
        }
示例#4
0
 public TablePanelInfo(TableEditorGrid grid, ILegendLayer layer, ITablePanel panel)
 {
     if (grid == null)
     {
         throw new ArgumentNullException("grid");
     }
     if (layer == null)
     {
         throw new ArgumentNullException("layer");
     }
     if (panel == null)
     {
         throw new ArgumentNullException("panel");
     }
     Grid  = grid;
     Layer = layer;
     Panel = panel;
 }