33 lines
877 B
C#
33 lines
877 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Go_Frp
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
// 检查是否启动
|
|
bool createNew;
|
|
System.Threading.Mutex mutex = new System.Threading.Mutex(true, "Go_Frp", out createNew);
|
|
if (!createNew)
|
|
{
|
|
MessageBox.Show("Go_Frp 已经启动了!");
|
|
return;
|
|
}
|
|
|
|
// 显示登录窗口
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new Go_Frp());
|
|
}
|
|
}
|
|
}
|