public void Copy(ESRI.ArcGIS.Geodatabase.IRow srcRow) { if (m_inspector == null) { m_inspector = new FeatureInspectorClass(); } m_inspector.Copy(srcRow); }
public void Clear() { if (m_inspector == null) { m_inspector = new FeatureInspectorClass(); } m_inspector.Clear(); }
public void Inspect(ESRI.ArcGIS.Editor.IEnumRow objects, ESRI.ArcGIS.Editor.IEditor Editor) { try { if (m_osmFeatureInspector == null) { m_osmFeatureInspector = new OSMFeatureInspectorUI(); } if (m_inspector == null) { m_inspector = new FeatureInspectorClass(); } ShowWindow(m_inspector.HWND, SW_SHOW); m_inspector.Inspect(objects, Editor); if (Editor == null) { return; } if (objects == null) { return; } if (m_osmFeatureInspector.IsInitialized == false) m_osmFeatureInspector.Init(Editor); m_editor = Editor; m_enumRow = objects; IEnumFeature enumFeatures = Editor.EditSelection; enumFeatures.Reset(); int featureCount = 0; while (enumFeatures.Next() != null) { featureCount = featureCount + 1; } IEnumRow enumRow = objects; enumRow.Reset(); IRow row = enumRow.Next(); IFeature inspFeature = (IFeature)row; //user selected the layer name instead of a feature. if (objects.Count > 1) { m_osmFeatureInspector.prepareGrid4Features(objects); } else { m_osmFeatureInspector.prepareGrid4Feature(inspFeature); } m_osmFeatureInspector.currentlyEditedRows = enumRow; } catch (Exception ex) { if (m_osmFeatureInspector != null) { m_osmFeatureInspector.ClearGrid(); } System.Diagnostics.Debug.WriteLine(ex.Message); } }
public void Inspect(ESRI.ArcGIS.Editor.IEnumRow objects, ESRI.ArcGIS.Editor.IEditor Editor) { try { if (m_osmFeatureInspector == null) { m_osmFeatureInspector = new OSMFeatureInspectorUI(); } if (m_inspector == null) { m_inspector = new FeatureInspectorClass(); } ShowWindow(m_inspector.HWND, SW_SHOW); m_inspector.Inspect(objects, Editor); if (Editor == null) { return; } if (objects == null) { return; } if (m_osmFeatureInspector.IsInitialized == false) { m_osmFeatureInspector.Init(Editor); } m_editor = Editor; m_enumRow = objects; IEnumFeature enumFeatures = Editor.EditSelection; enumFeatures.Reset(); int featureCount = 0; while (enumFeatures.Next() != null) { featureCount = featureCount + 1; } IEnumRow enumRow = objects; enumRow.Reset(); IRow row = enumRow.Next(); IFeature inspFeature = (IFeature)row; //user selected the layer name instead of a feature. if (objects.Count > 1) { m_osmFeatureInspector.prepareGrid4Features(objects); } else { m_osmFeatureInspector.prepareGrid4Feature(inspFeature); } m_osmFeatureInspector.currentlyEditedRows = enumRow; } catch (Exception ex) { if (m_osmFeatureInspector != null) { m_osmFeatureInspector.ClearGrid(); } System.Diagnostics.Debug.WriteLine(ex.Message); } }