using System.Collections.Concurrent;
namespace Terminal.Gui.App;
public static partial class Application // Current handling
{
///
[Obsolete ("The legacy static Application object is going away.")] public static ConcurrentStack SessionStack => ApplicationImpl.Instance.SessionStack;
/// The that is currently active.
/// The current toplevel.
[Obsolete ("The legacy static Application object is going away.")]
public static Toplevel? Current
{
get => ApplicationImpl.Instance.Current;
internal set => ApplicationImpl.Instance.Current = value;
}
}