/// <summary> /// Executes the command. /// Execute CopyCmd and PasteCmd until cancelled. /// </summary> /// <param name="services">CommandServices object to interact with the system</param> 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); }
/// <summary> /// Executes the command. /// Execute CopyCmd and PasteCmd until cancelled. /// </summary> /// <param name="services">CommandServices object to interact with the system</param> 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); }