FlashDevelop的默认设置好象不能同时启动两个或两个以上的FlashDevelop程序。
但通过简单的设定,其实FlashDevelop也可以同时启动多个的。
方法如下:
在FlashDevelop安装目录下,新建一个.multi的空白文件即可。
因为是看“图”说话,所以把“图”也贴上来
static void Main(String[] arguments)
{
if (SingleInstanceApp.AlreadyExists)
{
if (!MultiInstanceMode) SingleInstanceApp.NotifyExistingInstance(arguments);
else RunFlashDevelopWithErrorHandling(arguments, false);
}
else RunFlashDevelopWithErrorHandling(arguments, true);
}
......
public static Boolean MultiInstanceMode
{
get
{
String file = Path.Combine(PathHelper.AppDir, ".multi");
return File.Exists(file);
}
}
我有话说:
其实就是这个样子,MultiInstanceMode与否就看.multi文件存在与否。
实现类似的功能时可以参考一下。哈哈哈