public override void OnClick() { frmDataConvert _frmDataConvert = new frmDataConvert() { OutGxObject = ((IGxSelection)_context.GxSelection).FirstObject }; _frmDataConvert.ShowDialog(); }
public override void OnClick() { frmDataConvert _frmDataConvert = new frmDataConvert() { OutGxObject = ((IGxSelection)_context.GxSelection).FirstObject, ImportDatasetType = esriDatasetType.esriDTTable }; _frmDataConvert.ShowDialog(); }
public override void OnClick() { frmDataConvert _frmDataConvert = new frmDataConvert() { Text = "要素类 To 要素类" }; if (((IGxSelection)_context.GxSelection).FirstObject is IGxDataset && (((IGxSelection)_context.GxSelection).FirstObject as IGxDataset).DatasetName.Type == esriDatasetType.esriDTFeatureClass) { _frmDataConvert.InGxObject = ((IGxSelection)_context.GxSelection).FirstObject; } _frmDataConvert.ShowDialog(); }