public RemoteControl()
 {
     onCommands = new ICommand[7];
     offCommands = new ICommand[7];
     NoCommand noCommand = new NoCommand();
     for (int i = 0; i < 7; i++)
     {
         onCommands[i] = noCommand;
         offCommands[i] = noCommand;
     }
     undoCommand = noCommand;
 }
Esempio n. 2
0
        public RemoteControl()
        {
            onCommands  = new ICommand[7];
            offCommands = new ICommand[7];
            NoCommand noCommand = new NoCommand();

            for (int i = 0; i < 7; i++)
            {
                onCommands[i]  = noCommand;
                offCommands[i] = noCommand;
            }
            undoCommand = noCommand;
        }