| 1234567891011121314151617181920212223242526272829 |
- using Avalonia;
- using System;
- using InABox.Avalonia.Platform;
- using InABox.Avalonia.Platform.Desktop;
- using PRS.DigitalKey;
- namespace Prs.DigitalKey.Desktop;
- class Program
- {
- // Initialization code. Don't use any Avalonia, third-party APIs or any
- // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
- // yet and stuff might break.
- [STAThread]
- public static void Main(string[] args) => BuildAvaloniaApp()
- .StartWithClassicDesktopLifetime(args);
-
- // Avalonia configuration, don't remove; also used by visual designer.
- public static AppBuilder BuildAvaloniaApp()
- {
-
- PlatformTools.Register<IBluetooth, Desktop_Bluetooth>();
-
- return AppBuilder.Configure<App>()
- .UsePlatformDetect()
- .WithInterFont()
- .LogToTrace();
- }
- }
|