37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using DevExpress.Skins;
|
|
using DevExpress.UserSkins;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using DevExpress.LookAndFeel;
|
|
using WinformGeneralDeveloperFrame.Commons;
|
|
|
|
namespace WinformGeneralDeveloperFrame.Start
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
DevExpress.Skins.SkinManager.EnableFormSkins();
|
|
UserLookAndFeel.Default.SetSkinStyle("Office 2010 Blue");
|
|
BonusSkins.Register();
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
|
|
Application.Run(new MainForm());
|
|
}
|
|
private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs ex)
|
|
{
|
|
if (DialogResult.Yes == "系统发生错误,您需要退出系统吗?".ShowYesNoAndError())
|
|
{
|
|
Application.Exit();
|
|
}
|
|
}
|
|
|
|
}
|
|
} |