public static sluice GetSluice() { if (instance == null) { instance = new sluice(); } return(instance); }
public static void MainMenu() { sluice sluice = sluice.GetSluice(); bool quit = false; do { ShowMenu(); char ManagersChoice = InputManagersChoice(); switch (ManagersChoice) { case '1': sluice.AddShips(); break; case '2': sluice.ViewShips(); break; case '3': Console.Clear(); sluice.ViewShipsLog(); break; case '4': sluice.ClearShipsLog(); break; case '5': sluice.ChangeSluiceState(); break; case 'Q': quit = true; break; default: break; } } while (!quit); }