예제 #1
0
 public Kumanda()
 {
     for (int i = 0; i < tus; i++)
     {
         komut[i] = new EmptyCommand();
     }
 }
        public RemoteControl()
        {
            onCommands  = new ICommand[3];
            offCommands = new ICommand[3];

            ICommand emptyCommand = new EmptyCommand();

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