Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (24 sloc) 866 Bytes
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace MEditor
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
Application.Run(new frmMain());
}
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
MessageBox.Show("Sorry,出现了一个错误!如果严重的影响了您的工作,请将它发给我allen.fantasy@gmail.com"+e.Exception.StackTrace);
}
}
}