示例#1
0
        private void ShowTableEditor(IMapLegendView view)
        {
            var layer = view.SelectedLayer as IFeatureLayer;

            _presenter.OpenTable(layer);
            _context.DockPanels.ShowDockPanel(TableEditorDockPanel.DefaultDockName, true, true);
        }
示例#2
0
        private void ShowTableEditor()
        {
            var layer = _context.Legend.SelectedLayer;

            if (layer.IsVector)
            {
                _presenter.OpenTable(layer);
            }

            var panel = _context.DockPanels.Find(DockPanelKeys.TableEditor);

            if (panel != null && !panel.Visible)
            {
                panel.Visible = true;
            }
        }