/// <summary>
        /// Inspects the properties of the features.
        /// </summary>
        /// <param name="objects"></param>
        /// <param name="Editor"></param>
        public void Inspect(ESRI.ArcGIS.Editor.IEnumRow objects, ESRI.ArcGIS.Editor.IEditor Editor)
        {
            try
            {
                SetParent(m_inspector.HWND, stabHwnd);
                SetParent(stabHwnd, picHwnd);

                ShowWindow(m_inspector.HWND, SW_SHOW);
                m_inspector.Inspect(objects, Editor);

                IEnumRow enumRow     = objects;
                IRow     row         = enumRow.Next();
                IFeature inspFeature = (IFeature)row;

                //user selected the layer name instead of a feature.
                if (objects.Count > 1)
                {
                    return;
                }

                switch (inspFeature.Shape.GeometryType)
                {
                case esriGeometryType.esriGeometryPolygon:
                {
                    //do this for polygons.
                    customListBox.Items.Clear();
                    ReportPolygons(inspFeature);
                    break;
                }

                case esriGeometryType.esriGeometryPolyline:
                {
                    //do this for lines.
                    customListBox.Items.Clear();
                    ReportPolylines(inspFeature);
                    break;
                }

                case esriGeometryType.esriGeometryPoint:
                {
                    //do this for points.
                    customListBox.Items.Clear();
                    ReportPoints(inspFeature);
                    break;
                }

                default:
                    break;
                } //End switch.
            }
            catch (Exception ex)
            {
                MessageBox.Show("IObjectInspector_Inspect: " + 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);
              }
        }
        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);
            }
        }