public static void Add(UserDefinedTool newBehavior) { if (Behavior.NewBehaviorCreated != null) { Behavior.NewBehaviorCreated(newBehavior); } ToolStorage.Instance.AddTool(newBehavior); }
public static void Delete(UserDefinedTool tool) { if (Behavior.BehaviorDeleted != null) { Behavior.BehaviorDeleted(tool); } ToolStorage.Instance.RemoveTool(tool); }
public virtual void CreateTool() { foreach (var result in Results.ToArray()) { AddIntermediateResults(result); } Results = Sort(Results); string macro = MacroSerializer.WriteMacroToString(Inputs, Results); UserDefinedTool.AddFromString(macro); }
public virtual void RemoveTool(UserDefinedTool behavior) { }
public virtual void RenameTool(UserDefinedTool behavior, string newName) { }
public virtual void AddTool(UserDefinedTool newBehavior) { }
public static void AddFromString(string macro) { UserDefinedTool tool = new UserDefinedTool(macro); Behavior.Add(tool); }
public UserDefinedDialog(UserDefinedTool parent) { Parent = parent; }