using NationalInstruments.TestStand.Interop.UI.Ax; namespace Plugin.TsSupport { public class TestAppManager { private static object lockObj = new object(); private static AxApplicationMgr instance; public static AxApplicationMgr GetAxApplicationMgr() { lock (lockObj) { if (instance == null) { instance = new AxApplicationMgr(); } return instance; } } public static void Dispose() { lock (lockObj) { if (instance != null) { instance.Dispose(); instance = null; } } } } }