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(); }
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; } }