/// <summary> /// 左键弹起事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void iMSMap1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { //清除鼠标选择的对象 if (this._markers != null) { this._markers.EnableEdit = false; this._markers = null; } }
/// <summary> /// 对象选择处理事件 /// </summary> /// <param name="sender"></param> void markers_ChossedShapeOverCallBack(IMSMarkerSymbol sender) { //清除上次鼠标选择的对象 if (_markers != null) { _markers.EnableEdit = false; } //设置鼠标当前选择的对象 _markers = sender; _markers.EnableEdit = true; }
/// <summary> /// 点选择回调事件 /// </summary> /// <param name="sender"></param> void markers_ChossedShapeOverCallBack(IMSMarkerSymbol sender) { //清除上选择的对象 if (this.shape != null) { this.shape.EnableEdit = false; } if (_markers != null) { _markers.EnableEdit = false; } //设置当前选择对象 _markers = sender; _markers.EnableEdit = true; }