VSoft/Source/VSoftBox/Program.cs
如果当时 b84dac3cb1 ### 2021-03-04更新
------
#### VSoft    V1.0.2103.0401
- *.[新增]新增测试模式,测试模式下支持编辑内置命令。
- *.[修复]修复内置命令删除栏目时,内置命令没有同步删除的BUG。
#### VSoftBox    V1.0.2103.0401
- *.[删除]删除配置类,全部集合在VSoft.dll中。
2021-03-04 21:39:10 +08:00

35 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using VSoft.Config;
namespace VSoftBox
{
static class Program
{
static System.Threading.Mutex run;
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Soft_Info.UserDataFolder = ryCommon.RyFiles.GetRealPath(Soft_Info.UserDataFolder);
run = new System.Threading.Mutex(true, Soft_Info.Soft_Id, out bool runone);
if (!runone) //已经运行了
{
ryCommon.Ini ini = new ryCommon.Ini(Soft_Info.UserDataFolder + "\\Win.dat");
ryControls.Win32.SendMessage((IntPtr)ini.ReadIni(Soft_Info.Soft_Id, "hwnd", 0), 17189, 100, 100);
}
else
{
Application.Run(new VSoft.FrmVSoft(args));
//Application.Run(new WindowsFormsApp2.Form1());
}
}
}
}