------ #### SuperDesign V3.0.2412.2101 - *.[新增]新增支持多选更新日志列表,合并生成Html日志。 - *.[改进]支持设置解决方案中的哪些项目日志不显示在Html日志列表里。 - *.[改进]打开时默认选中主项目的更新日志Tab。 - *.[修复]修复创建项目时的版权日期不会随着当前日期更新的BUG。 - *.[修复]修复创建项目时引用的RaUI项目文件无法转换成RaUI.dll的BUG。 - *.[修复]修复连续快速打开项目,会导致软件多开的BUG。
71 lines
2.5 KiB
C#
71 lines
2.5 KiB
C#
using ryCommon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using 开发辅助工具.Controls;
|
|
|
|
namespace 开发辅助工具
|
|
{
|
|
public class Init
|
|
{
|
|
static System.Threading.Mutex run;
|
|
public static void Show(string[] args)
|
|
{
|
|
if (args.Length >= 2)
|
|
{
|
|
if (args[0] == "ver")
|
|
{
|
|
string ProjectDir = args[1];
|
|
Manager.RyProject.UpdateVer(ProjectDir.Trim('"') + "\\Properties\\AssemblyInfo.cs");
|
|
}
|
|
else if (args[0] == "get")
|
|
{
|
|
string ProjectPath = args[1];
|
|
run = new System.Threading.Mutex(true, "S_"+rySafe.MD5Sha1.GetMD5(ProjectPath), out bool runone);
|
|
if (!runone) //已经运行了
|
|
{
|
|
Ini ini = new Ini(Application.StartupPath + "\\UserDb\\Win.dat");
|
|
var handle = ini.ReadIni("ProjectHwnd", rySafe.MD5Sha1.GetMD5(ProjectPath),0); ;
|
|
if(handle>0)
|
|
{
|
|
if (RyForm.GetWinText((IntPtr)handle).Length > 0)
|
|
{
|
|
ryControls.Win32.SendMessage((IntPtr)handle, 17189, 100, 100);
|
|
}
|
|
else
|
|
{
|
|
Application.Run(new Form1(ProjectPath, "get"));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
// Application.Run(new Form1(ProjectPath, "get"));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Application.Run(new Form1(ProjectPath, "get"));
|
|
}
|
|
}
|
|
else if (args[0] == "open")
|
|
{
|
|
string ProjectPath = args[1];
|
|
Application.Run(new Form1(ProjectPath, "open"));
|
|
}
|
|
}
|
|
else if(args.Length == 1)
|
|
{
|
|
Application.Run(new Form1("", ""));
|
|
}
|
|
else
|
|
{
|
|
Application.Run(new Form1("", ""));
|
|
//Application.Run(new FrmMainEditor());
|
|
}
|
|
}
|
|
}
|
|
}
|