Beispiel #1
0
        public static void Run()
        {
            Supplies.Init(500, 1000, 1000,
                          100, 500, 100, 100, 10,
                          200, 300);

            var programTimer = new ProgramTimer();

            programTimer.Start();

            Counter.Enter();

            do
            {
                switch (_enterCode)
                {
                case 1: _enterCode = 1;
                    Counter.Enter();
                    break;

                case 2: _enterCode = 2;
                    WaitingList.Enter();
                    break;

                case 3: _enterCode = 3;
                    FunctionalList.Enter();
                    break;

                case 4: _enterCode = 4;
                    Supplies.Enter();
                    break;

                case 6: _enterCode = 6;
                    CoffeeMachine.Enter();
                    break;

                case 7: _enterCode = 7;
                    Oven.Enter();
                    break;
                }
            } while (true);
        }