public override void OnClick() { frmExportData data = new frmExportData(); data.FocusMap = _context.FocusMap as IBasicMap; data.FeatureLayer = _view.CurrentGridView.FeatureLayer; data.ShowDialog(); }
public void OnClick() { if (_view.SelectedItemType == esriTOCControlItem.esriTOCControlItemMap) { return; } if (!(_view.SelectedLayer is IFeatureLayer)) { return; } frmExportData data = new frmExportData(); data.FocusMap = _view.SelectedMap; data.FeatureLayer = _view.SelectedLayer as IFeatureLayer; data.ShowDialog(); }