2.0.8
This commit is contained in:
@@ -11,6 +11,19 @@ namespace VisionBuilder.UI.Common;
|
||||
|
||||
public static class VisionBuilder
|
||||
{
|
||||
private static Mutex? _mutex;
|
||||
const string mutexName = "VisionBuilder.UI.SingleInstance";
|
||||
public static bool IsAlreadyRunning()
|
||||
{
|
||||
_mutex = new Mutex(true, mutexName, out bool createdNew);
|
||||
|
||||
if (!createdNew)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public static IKernel CreateMainKernel(InspectronSettings settings)
|
||||
{
|
||||
TypeDescriptor.AddAttributes(typeof(List<ErrorShortName>), new TypeConverterAttribute(typeof(ErrorShortNameConverter)));
|
||||
|
||||
Reference in New Issue
Block a user