using Avalonia; using System; using Utils; namespace FileTranslation; sealed 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) { try { AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; Thread.CurrentThread.Name = "Main Thread"; BuildAvaloniaApp() .StartWithClassicDesktopLifetime(args); } catch (Exception e) { Log.Error(e.ToString()); } } private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs e) { Log.Error(e.ExceptionObject.ToString()); } // Avalonia configuration, don't remove; also used by visual designer. public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure() .UsePlatformDetect() .WithInterFont() .LogToTrace() .With(new Win32PlatformOptions() { WinUICompositionBackdropCornerRadius = 15 }); }