Ejemplo n.º 1
0
 public void RemoveCommand(ToolCommand removeCmd)
 {
     if (base.Parent != null)
     {
         base.Parent.RemoveCommand(this);
     }
 }
Ejemplo n.º 2
0
 public void AddCommand(ToolCommand addCmd)
 {
     this.Commands.Add(addCmd);
     if (addCmd.Parent == null)
     {
         addCmd.Parent = this;
     }
     this.Rasterize();
 }
Ejemplo n.º 3
0
        public void Draw(Graphics g)
        {
            ToolCommand command = this.GetCommand();

            if (command != null)
            {
                command.Draw(g);
            }
        }
Ejemplo n.º 4
0
 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);
         }
     }
 }
Ejemplo n.º 5
0
 private void activeTool_Started(ToolCommand command)
 {
     this.isToolUse = true;
 }
Ejemplo n.º 6
0
 private void activeTool_Finished(ToolCommand command)
 {
     this.isToolUse = false;
     this.historyCommand.Add(command);
     this.activeLayer.AddCommand(command);
 }
Ejemplo n.º 7
0
 public void RemoveCommand(ToolCommand removeCmd)
 {
     this.Commands.Remove(removeCmd);
     this.Rasterize();
     this.RefreshLayer();
 }
Ejemplo n.º 8
0
 public AddTextLayerCommand(string layerName, int insertIndex) : base(layerName, insertIndex)
 {
     this.childs = null;
 }
Ejemplo n.º 9
0
 public void AddCommand(ToolCommand addCmd)
 {
     this.childs = addCmd;
 }
Ejemplo n.º 10
0
 // Token: 0x06000102 RID: 258 RVA: 0x00007234 File Offset: 0x00005434
 public void RemoveCommand(ToolCommand removeCmd)
 {
     LayerCommands.Remove((LayerCommand)removeCmd);
     RefreshLayer();
 }
Ejemplo n.º 11
0
 // Token: 0x06000100 RID: 256 RVA: 0x000070D4 File Offset: 0x000052D4
 public void AddCommand(ToolCommand addCmd)
 {
     LayerCommands.Add((LayerCommand)addCmd);
     addCmd.Parent = this;
     RefreshLayer();
 }