Program.cs 497 B

1234567891011121314151617181920
  1. using System;
  2. using System.Linq;
  3. using Avalonia;
  4. namespace ControlCatalog.NetCore
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. if (args.Contains("--fbdev"))
  11. AppBuilder.Configure<App>()
  12. .InitializeWithLinuxFramebuffer(tl => tl.Content = new MainView());
  13. else
  14. AppBuilder.Configure<App>()
  15. .UsePlatformDetect()
  16. .Start<MainWindow>();
  17. }
  18. }
  19. }