コード例 #1
0
 public void RemoveCommand(ToolCommand removeCmd)
 {
     if (base.Parent != null)
     {
         base.Parent.RemoveCommand(this);
     }
 }
コード例 #2
0
ファイル: ScrapPaintLayerItem.cs プロジェクト: zzhm/SETUNA2
 public void AddCommand(ToolCommand addCmd)
 {
     this.Commands.Add(addCmd);
     if (addCmd.Parent == null)
     {
         addCmd.Parent = this;
     }
     this.Rasterize();
 }
コード例 #3
0
ファイル: PaintTool.cs プロジェクト: zzhm/SETUNA2
        public void Draw(Graphics g)
        {
            ToolCommand command = this.GetCommand();

            if (command != null)
            {
                command.Draw(g);
            }
        }
コード例 #4
0
ファイル: ScrapPaintWindow.cs プロジェクト: xyg1973/SETUNA2
 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);
         }
     }
 }
コード例 #5
0
ファイル: ScrapPaintWindow.cs プロジェクト: xyg1973/SETUNA2
 private void activeTool_Started(ToolCommand command)
 {
     this.isToolUse = true;
 }
コード例 #6
0
ファイル: ScrapPaintWindow.cs プロジェクト: xyg1973/SETUNA2
 private void activeTool_Finished(ToolCommand command)
 {
     this.isToolUse = false;
     this.historyCommand.Add(command);
     this.activeLayer.AddCommand(command);
 }
コード例 #7
0
ファイル: ScrapPaintLayerItem.cs プロジェクト: zzhm/SETUNA2
 public void RemoveCommand(ToolCommand removeCmd)
 {
     this.Commands.Remove(removeCmd);
     this.Rasterize();
     this.RefreshLayer();
 }
コード例 #8
0
 public AddTextLayerCommand(string layerName, int insertIndex) : base(layerName, insertIndex)
 {
     this.childs = null;
 }
コード例 #9
0
 public void AddCommand(ToolCommand addCmd)
 {
     this.childs = addCmd;
 }
コード例 #10
0
ファイル: ScrapPaintLayer.cs プロジェクト: zch-soft/SETUNA2
 // Token: 0x06000102 RID: 258 RVA: 0x00007234 File Offset: 0x00005434
 public void RemoveCommand(ToolCommand removeCmd)
 {
     LayerCommands.Remove((LayerCommand)removeCmd);
     RefreshLayer();
 }
コード例 #11
0
ファイル: ScrapPaintLayer.cs プロジェクト: zch-soft/SETUNA2
 // Token: 0x06000100 RID: 256 RVA: 0x000070D4 File Offset: 0x000052D4
 public void AddCommand(ToolCommand addCmd)
 {
     LayerCommands.Add((LayerCommand)addCmd);
     addCmd.Parent = this;
     RefreshLayer();
 }