public void RemoveCommand(ToolCommand removeCmd) { if (base.Parent != null) { base.Parent.RemoveCommand(this); } }
public void AddCommand(ToolCommand addCmd) { this.Commands.Add(addCmd); if (addCmd.Parent == null) { addCmd.Parent = this; } this.Rasterize(); }
public void Draw(Graphics g) { ToolCommand command = this.GetCommand(); if (command != null) { command.Draw(g); } }
private void UndoCommand() { if (this.historyCommand.Count != 0) { ToolCommand item = this.historyCommand[this.historyCommand.Count - 1]; this.historyCommand.Remove(item); if (item.Parent != null) { item.Parent.RemoveCommand(item); } } }
private void activeTool_Started(ToolCommand command) { this.isToolUse = true; }
private void activeTool_Finished(ToolCommand command) { this.isToolUse = false; this.historyCommand.Add(command); this.activeLayer.AddCommand(command); }
public void RemoveCommand(ToolCommand removeCmd) { this.Commands.Remove(removeCmd); this.Rasterize(); this.RefreshLayer(); }
public AddTextLayerCommand(string layerName, int insertIndex) : base(layerName, insertIndex) { this.childs = null; }
public void AddCommand(ToolCommand addCmd) { this.childs = addCmd; }
// Token: 0x06000102 RID: 258 RVA: 0x00007234 File Offset: 0x00005434 public void RemoveCommand(ToolCommand removeCmd) { LayerCommands.Remove((LayerCommand)removeCmd); RefreshLayer(); }
// Token: 0x06000100 RID: 256 RVA: 0x000070D4 File Offset: 0x000052D4 public void AddCommand(ToolCommand addCmd) { LayerCommands.Add((LayerCommand)addCmd); addCmd.Parent = this; RefreshLayer(); }