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.
29 lines
794 B
29 lines
794 B
using Eto.Forms;
|
|
|
|
namespace Atomic.Gtk;
|
|
|
|
class Program
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
var application = new Application(Eto.Platforms.Gtk);
|
|
application.UnhandledException += ApplicationOnUnhandledException;
|
|
try
|
|
{
|
|
application.Run(new ModPacker());
|
|
}
|
|
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}", "GTK", MessageBoxType.Error);
|
|
});
|
|
}
|
|
} |