forked from sunminghong/MEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
26 lines (24 loc) · 868 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
}
}