startter.cs
来自「工作时用C#编写的WPS密码测试工具,主要用于测试与MSO文件兼容(IO)而写的」· CS 代码 · 共 32 行
CS
32 行
using System;
using System.Windows.Forms;
namespace v6SmokeTest.PasswordTest
{
/// <summary>
/// 程序起始类
/// </summary>
public class Startter
{
#region 应用程序的主入口点
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
FormMain m_pFormMain = new FormMain();
if(args.Length > 1)
{
if(args[0] == "1" || args[0].ToUpper() == "TRUE")
m_pFormMain.AutoStart = true;
if(args[1] == "1" || args[1].ToUpper() == "TRUE")
m_pFormMain.AutoExit = true;
}
Application.Run(m_pFormMain);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?