⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app.cs

📁 c#标准教程适合与处于不同学习阶段的人
💻 CS
字号:
using System;
using SWF = System.Windows.Forms;
using ST = System.Threading;
using T = System.Diagnostics.Trace;

namespace BankCustomerApp
{

	public class App
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		public static void Main() 
		{
			try
			{
				// setup generic exception handler...
				SWF.Application.ThreadException += new ST.ThreadExceptionEventHandler(App.OnAppException);

				// setup cleanup routine for normal app shutdown...
				SWF.Application.ThreadExit += new System.EventHandler(App.OnAppExit);

				// when app starts, delete the previous log file (if any)
				string  logfile = System.AppDomain.CurrentDomain.BaseDirectory + "AppLog.txt";
				System.IO.TextWriter  log = new System.IO.StreamWriter(logfile);

				if (Globals.Trace)  // then also send trace output to log file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -