Beispiel #1
0
 private bool CheckForToolActivation()
 {
     foreach (IEdTool tool in Toolset)
     {
         if (tool.Active == false && tool.ActivationCheck() == true)
         {
             ResetTools();
             tool.Active = true;
             tool.OnActivate();
             ActiveTool = tool;
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
 public void AddTool(IEdTool tool)
 {
     Toolset.Add(tool);
 }