Canguro.Commands.Model.CopyPasteCmd.Run C# (CSharp) Method

Run() public method

Executes the command. Execute CopyCmd and PasteCmd until cancelled.
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
return void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            services.Run(new CopyCmd());
            PasteCmd cmd;
            do
            {
                services.Run(cmd = new PasteCmd());
                services.Model.ChangeModel();
            }
            while (cmd.ObjectCount > 0);
        }
CopyPasteCmd