Exemple #1
0
 public void SetCommand(IMachineCommand command)
 {
     this.Command = command;
     if (!this.commands.Contains(command))
     {
         this.commands.Add(command);
     }
 }
Exemple #2
0
        public void RemoveCommand(IMachineCommand command)
        {
            if (this.Command == command)
            {
                this.Command = null;
            }

            if (this.commands.Contains(command))
            {
                this.commands.Remove(command);
            }
        }