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