Program.cs 602 B

123456789101112131415161718192021
  1. using System.Reactive.Concurrency;
  2. using ReactiveUI;
  3. using Terminal.Gui.App;
  4. using Terminal.Gui.Configuration;
  5. namespace ReactiveExample;
  6. public static class Program
  7. {
  8. private static void Main (string [] args)
  9. {
  10. ConfigurationManager.Enable (ConfigLocations.All);
  11. using IApplication app = Application.Create ();
  12. app.Init ();
  13. RxApp.MainThreadScheduler = new TerminalScheduler (app);
  14. RxApp.TaskpoolScheduler = TaskPoolScheduler.Default;
  15. var loginView = new LoginView (new ());
  16. app.Run (loginView);
  17. loginView.Dispose ();
  18. }
  19. }