Application.Toplevel.cs 575 B

1234567891011121314151617
  1. using System.Collections.Concurrent;
  2. namespace Terminal.Gui.App;
  3. public static partial class Application // Toplevel handling
  4. {
  5. /// <inheritdoc cref="IApplication.SessionStack"/>
  6. public static ConcurrentStack<Toplevel> SessionStack => ApplicationImpl.Instance.SessionStack;
  7. /// <summary>The <see cref="Toplevel"/> that is currently active.</summary>
  8. /// <value>The current toplevel.</value>
  9. public static Toplevel? Current
  10. {
  11. get => ApplicationImpl.Instance.Current;
  12. internal set => ApplicationImpl.Instance.Current = value;
  13. }
  14. }