ICommand cmd = new ControlsGlobeOrbitalFlyToolClass(); cmd.OnCreate(axGlobeControl1.Object);if (cmd.Enabled) axGlobeControl1.CurrentTool = cmd as ITool; ITool tool = cmd as ITool; //顯示指北針 axGlobeControl1.GlobeViewer.NorthArrowEnabled = true; axGlobeControl1.GlobeDisplay.RefreshViewers(); |
|