📄 program.cs
字号:
#region Copyright ArtfulBits Inc. 2005 - 2008
//
// Copyright ArtfulBits Inc. 2005 - 2008. All rights reserved.
//
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// info@artfulbits.com. Re-distribution in any form is strictly
// prohibited. Any infringement will be prosecuted under applicable laws.
//
#endregion
#region file using
using System;
using System.Windows.Forms;
using System.Threading;
using Artfulbits.Utilities.Diagnostics;
#endregion
namespace OpenBoxUpdater
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[ STAThread ]
private static void Main()
{
try
{
Application.ThreadException += Application_ThreadException;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault( false );
Application.Run( new frmMain() );
}
catch( Exception ex )
{
_tracer.Error( ex );
}
finally
{
Application.ThreadException -= Application_ThreadException;
}
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private static void Application_ThreadException( object sender, ThreadExceptionEventArgs e )
{
_tracer.Error( e.Exception, "Thread Exception" );
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -