public void Dispose() { Instance = null; Loaded.Dispose(); Thread.Abort(); return; }
private UserInterfaceSingleton() { Instance = this; Thread = new Thread(() => { Application = new Application(); Loaded.Set(); Application.Run(); }); Thread.SetApartmentState(ApartmentState.STA); Thread.Start(); Loaded.WaitOne(); }
public static bool HideWindow(OYS_Window window) => UserInterfaceSingleton.HideWindow(window);
public static bool WaitForWindowClose(OYS_Window window) => UserInterfaceSingleton.WaitForWindowClose(window);
public static bool ShowWindow(OYS_Window window) => UserInterfaceSingleton.ShowWindow(window);
public static bool WaitForWindowLoad(OYS_Window window) => UserInterfaceSingleton.WaitForWindowCreation(window);
public static bool CloseWindow(OYS_Window window) => UserInterfaceSingleton.CloseWindow(window);
public static T CreateWindow <T>() where T : OYS_Window, new() => UserInterfaceSingleton.CreateWindow <T>();
public static bool Shutdown() => UserInterfaceSingleton.Shutdown();
public static UserInterfaceSingleton Initialise() => UserInterfaceSingleton.Instantiate();