public static void StartLayout(ConsoleScreenLayout layout) { Console.TreatControlCAsInput = true; layout.RunScreen(); while (screenQueue.Count > 0) { var next = screenQueue.First.Value; screenQueue.RemoveFirst(); next.RunScreen(); } }
public static void QueueNextLayout(ConsoleScreenLayout layout) { screenQueue.AddFirst(layout); }
public static void QueueLayout(ConsoleScreenLayout layout) { screenQueue.AddLast(layout); }