Application.Current.cs 748 B

123456789101112131415161718
  1. using System.Collections.Concurrent;
  2. namespace Terminal.Gui.App;
  3. public static partial class Application // Current handling
  4. {
  5. /// <inheritdoc cref="IApplication.SessionStack"/>
  6. [Obsolete ("The legacy static Application object is going away.")] public static ConcurrentStack<Toplevel> SessionStack => ApplicationImpl.Instance.SessionStack;
  7. /// <summary>The <see cref="Toplevel"/> that is on the top of the <see cref="SessionStack"/>.</summary>
  8. /// <value>The top runnable.</value>
  9. [Obsolete ("The legacy static Application object is going away.")]
  10. public static Toplevel? TopRunnable
  11. {
  12. get => ApplicationImpl.Instance.TopRunnable;
  13. internal set => ApplicationImpl.Instance.TopRunnable = value;
  14. }
  15. }