private void axGlobeControl1_OnMouseUp(object sender, IGlobeControlEvents_OnMouseUpEvent e) { try { if (isShowCoordinates) { double XX = 0; double YY = 0; double ZZ = 0; showInfoOnMap.getGlobeCoodinates(this.axGlobeControl1, this.axGlobeControl1.Width / 2, this.axGlobeControl1.Height / 2, out XX, out YY, out ZZ); this.lblCoordInfoX.Text = "经度:" + XX.ToString(); this.lblCoordInfoY.Text = "纬度:" + YY.ToString(); this.lblCoordInfoZ.Text = "高度:" + ZZ.ToString(); //刷新显示 this.lblCoordInfoX.Refresh(); this.lblCoordInfoY.Refresh(); this.lblCoordInfoZ.Refresh(); this.itemContainer_CoordInfo.Refresh(); this.ribbonBar_CoordInfo.Refresh(); } else { this.lblCoordInfoX.Text = "经度:" + "0"; this.lblCoordInfoY.Text = "纬度:" + "0"; this.lblCoordInfoZ.Text = "高度:" + "0"; //刷新显示 this.lblCoordInfoX.Refresh(); this.lblCoordInfoY.Refresh(); this.lblCoordInfoZ.Refresh(); this.itemContainer_CoordInfo.Refresh(); this.ribbonBar_CoordInfo.Refresh(); } } catch { } }
void axGlobeControl_OnMouseUp(object sender, IGlobeControlEvents_OnMouseUpEvent e) { }