#nullable enable using System.Collections.Concurrent; namespace Terminal.Gui.App; public static partial class Application // Toplevel handling { // BUGBUG: Technically, this is not the full lst of TopLevels. There be dragons here, e.g. see how Toplevel.Id is used. What /// Holds the stack of TopLevel views. internal static ConcurrentStack TopLevels => ApplicationImpl.Instance.TopLevels; /// The that is currently active. /// The top. public static Toplevel? Top { get => ApplicationImpl.Instance.Top; internal set => ApplicationImpl.Instance.Top = value; } }