program.cs

来自「Aditional source code for sti5518 firmwa」· CS 代码 · 共 58 行

CS
58
字号
#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 + =
减小字号Ctrl + -
显示快捷键?