示例#1
0
文件: Tools.cs 项目: Tokter/TokED
 public static void AddTool(EditorTool tool)
 {
     _tools.Add(tool);
 }
示例#2
0
文件: Tools.cs 项目: Tokter/TokED
 private void Activate(EditorTool tool)
 {
     tool.Editor = _editor;
     if (tool.Availbable())
     {
         tool.Activated();
         if (tool.StaysActivated)
         {
             tool.Done = false;
             _activeTools.Push(tool);
         }
     }
 }