public static void AddTool(ViewerTool tool)
 {
     tool.EnterToolHandler();
     _overlayTools.Add(tool);
 }
 public static void RemoveTool(ViewerTool tool)
 {
     tool.ExitToolHandler();
     _overlayTools.Remove(tool);
 }
Beispiel #3
0
 /// <summary>
 /// 返回使用ViewerTool的单击事件处理函数
 /// </summary>
 /// <param name="tool">指定ViewerTool</param>
 /// <returns>单击事件处理函数</returns>
 public static Action ViewerTool(ViewerTool tool)
 {
     return(() => ViewerToolManager.ExclusiveTool = tool);
 }