Пример #1
0
 public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down...");
     Popper.Off();
     Lights.On();
     Screen.Up();
     Projector.Off();
     Amp.Off();
     DVD.Stop();
     DVD.Eject();
     DVD.Off();
 }
Пример #2
0
        static void Main()
        {
start:

            Console.WriteLine("Would you like to open the DVD tray? Y/N");
            string open = Console.ReadLine();

            if (open.ToLower() == "y")
            {
                DVD.Eject(@"\\.\E:");
                goto start;
            }
            else if (open.ToLower() == "n")
            {
                goto start;
            }
            else
            {
                goto start;
            }
        }