namespace SeaOfRadiationEditor;
public static class SystemProfile
{
private static bool _isGameRunning;
public static bool IsGameRunning
{
get { return _isGameRunning; }
set
{
_isGameRunning = value;
if (value)
{
try
{
MainForm.Current?.Invoke(() => MainForm.Current.Text = "辐射之海2 4项修改器[游戏进行中]");
}
catch { }
}
else
{
try
{
MainForm.Current?.Invoke(() => MainForm.Current.Text = "辐射之海2 4项修改器[未启动游戏]");
MainForm.RemoveAllCheck();
}
catch { }
}
}
}
}
namespace SeaOfRadiationEditor;
public static class SystemProfile
{
private static bool _isGameRunning;
public static bool IsGameRunning
{
get { return _isGameRunning; }
set
{
_isGameRunning = value;
if (value)
{
try
{
MainForm.Current?.Invoke(() => MainForm.Current.Text = "辐射之海2 4项修改器[游戏进行中]");
}
catch { }
}
else
{
try
{
MainForm.Current?.Invoke(() => MainForm.Current.Text = "辐射之海2 4项修改器[未启动游戏]");
MainForm.RemoveAllCheck();
}
catch { }
}
}
}
}