------ #### V1.0.2404.1201 - 新增支持手动运行规则。 - 规则播放时间间隔不再针对全局声效,而只针对当前规则声效。 - 修复规则中播放文件夹可能导致无法执行的BUG。 - 修复规则不勾选礼物和点赞,则无法执行的BUG。
30 lines
698 B
C#
30 lines
698 B
C#
using System.Configuration;
|
|
using System.Data;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows;
|
|
|
|
namespace LiveTools
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
private static Mutex mutex = null;
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
bool isFirstInstance;
|
|
mutex = new Mutex(true,Config.SoftId, out isFirstInstance);
|
|
|
|
if (!isFirstInstance)
|
|
{
|
|
//MessageBox.Show("应用程序已经在运行。");
|
|
Current.Shutdown();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|