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