📄 program.cs
字号:
namespace Codematic
{
using System;
using System.Windows.Forms;
internal static class Program
{
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ThreadExceptionHandler handler = new ThreadExceptionHandler();
Application.ThreadException += new ThreadExceptionEventHandler(handler.Application_ThreadException);
MainForm mainForm = new MainForm();
if (mainForm.mutex != null)
{
Application.Run(mainForm);
}
else
{
MessageBox.Show(mainForm, "程序已经有一个实例在运行!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -