public static void Main(string[] args) { MainForm.Start(args); }
private void Application_Startup(object sender, StartupEventArgs e) { Application.Current.DispatcherUnhandledException += new DispatcherUnhandledExceptionEventHandler(Application_ThreadException); MainForm.Start(e.Args); Application.Current.Shutdown(); }