You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
810 B
31 lines
810 B
using System;
|
|
using Eto.Forms;
|
|
|
|
namespace GlennGUI.Mac;
|
|
|
|
static class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
var app = new Application(Eto.Platforms.macOS);
|
|
try
|
|
{
|
|
app.UnhandledException += ApplicationOnUnhandledException;
|
|
app.Run(new MainForm());
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Console.WriteLine($"Unhandled Exception!\n*****Stack Trace*****\n\n{e}");
|
|
}
|
|
|
|
}
|
|
|
|
private static void ApplicationOnUnhandledException(object sender, Eto.UnhandledExceptionEventArgs e)
|
|
{
|
|
Application.Instance.Invoke(() =>
|
|
{
|
|
MessageBox.Show($"Unhandled Exception!\n*****Stack Trace*****\n\n{e.ExceptionObject}", "Mac", MessageBoxType.Error);
|
|
});
|
|
}
|
|
} |