Model Command to paste the items copied to the clipboard into the Model.
Inheritance: Canguro.Commands.ModelCommand
Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
 }