Exemplo n.º 1
0
 public void AddCommand(CommandBase command, bool doExecute)
 {
     if (commandSet == null)
     {
         undoneCommands.Clear();
         if (doExecute)
         {
             command.Execute();
         }
         doneCommands.Push(command);
     }
     else
     {
         commandSet.AddCommand(command);
     }
     OnModified();
 }
Exemplo n.º 2
0
 public void AddCommand(CommandBase command)
 {
     list.Add(command);
     command.Execute();
 }