示例#1
0
 public FindReplace(IAppContext context, IVirtualGridView view)
 {
     _context = context;
     _view    = view;
     InitializeComponent();
     InitControls();
 }
示例#2
0
        private void InitControls()
        {
            _header = new Header();
            //_virtualGrid = new VirtualGrid();
            _virtualGrid      = new Grid();
            _contextMenuStrip = new CompContextMenuStrip(_context, this);

            _header.Dock     = DockStyle.Top;
            _header.TabIndex = 0;
            _header.Value    = Text;
            //_header.Close += _header_Close;

            ((Grid)_virtualGrid).Dock         = DockStyle.Fill;
            ((Grid)_virtualGrid).FeatureLayer = _featureLayer;
            ((Grid)_virtualGrid).ShowTable(null);
            ((Grid)_virtualGrid).TabIndex                = 1;
            ((Grid)_virtualGrid).SelectFeatures         += _virtualGrid_SelectFeatures;
            ((Grid)_virtualGrid).ColumnHeaderRightClick += _virtualGrid_ColumnHeaderRightClick;

            this.Controls.Add(((Grid)_virtualGrid));
            this.Controls.Add(_header);
        }