コード例 #1
0
ファイル: MapApplication.cs プロジェクト: jugstalt/gViewGisOS
 internal void MapToolChanged(ITool oldTool, ITool newTool)
 {
     if (newTool != null)
     {
         if (_appWindow != null)
         {
             _appWindow.SetPanelImage(0, newTool.Image as System.Drawing.Image);
             _appWindow.SetPanelText(0, (!String.IsNullOrEmpty(newTool.ToolTip)) ? newTool.ToolTip : newTool.Name);
         }
     }
     if (ActiveMapToolChanged != null)
     {
         ActiveMapToolChanged(oldTool, newTool);
     }
 }