mirror of
https://github.com/Cysharp/R3.git
synced 2026-10-18 14:41:14 +08:00
26 lines
715 B
C#
26 lines
715 B
C#
using R3.WinForms;
|
|
|
|
namespace WinFormsApp1;
|
|
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
// see https://aka.ms/applicationconfiguration.
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
var form = new Form1();
|
|
|
|
WinFormsProviderInitializer.SetDefaultObservableSystem(static exception =>
|
|
MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error),
|
|
form);
|
|
|
|
Application.Run(form);
|
|
}
|
|
}
|