private void DotConSelectCallback(GraphicsLayer gLayer, IGraphics graphics, List <Point> logPntArr) { if (logPntArr.Count > 0) { Dot_2D dot = new Dot_2D(); dot.x = logPntArr[0].X; dot.y = logPntArr[0].Y; if (catalog.ActiveMapDoc != null && catalog.ActiveMapDoc.Display) { mapDocConditionInput.SelectionType = SelectionType.Both; mapDocConditionInput.QueryGeoObj = dot; mapDocConditionInput.Show(); } if (catalog.ActiveLayerObj != null && catalog.ActiveLayerObj.Display) { layerConditionInput.SelectionType = SelectionType.Both; layerConditionInput.QueryGeoObj = dot; layerConditionInput.Show(); } } }
/// <summary> /// 属性条件查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AttSelect_Click(object sender, RoutedEventArgs e) { if (m_catalog.ActiveMapDoc != null && m_catalog.ActiveMapDoc.Display) { m_mapDocConditionInput.SelectionType = SelectionType.Condition; m_mapDocConditionInput.QueryGeoObj = null; m_mapDocConditionInput.Show(); } if (m_catalog.ActiveLayerObj != null && m_catalog.ActiveLayerObj.Display) { m_layerConditionInput.SelectionType = SelectionType.Condition; m_layerConditionInput.QueryGeoObj = null; m_layerConditionInput.Show(); } }