public override void OnClick()
        {
            frmDataConvert _frmDataConvert = new frmDataConvert()
            {
                OutGxObject = ((IGxSelection)_context.GxSelection).FirstObject
            };

            _frmDataConvert.ShowDialog();
        }
Example #2
0
        public override void OnClick()
        {
            frmDataConvert _frmDataConvert = new frmDataConvert()
            {
                OutGxObject       = ((IGxSelection)_context.GxSelection).FirstObject,
                ImportDatasetType = esriDatasetType.esriDTTable
            };

            _frmDataConvert.ShowDialog();
        }
Example #3
0
        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();
        }