Exemple #1
0
 public void Dispose()
 {
     Instance = null;
     Loaded.Dispose();
     Thread.Abort();
     return;
 }
Exemple #2
0
 private UserInterfaceSingleton()
 {
     Instance = this;
     Thread   = new Thread(() =>
     {
         Application = new Application();
         Loaded.Set();
         Application.Run();
     });
     Thread.SetApartmentState(ApartmentState.STA);
     Thread.Start();
     Loaded.WaitOne();
 }
Exemple #3
0
 public static bool HideWindow(OYS_Window window) => UserInterfaceSingleton.HideWindow(window);
Exemple #4
0
 public static bool WaitForWindowClose(OYS_Window window) => UserInterfaceSingleton.WaitForWindowClose(window);
Exemple #5
0
 public static bool ShowWindow(OYS_Window window) => UserInterfaceSingleton.ShowWindow(window);
Exemple #6
0
 public static bool WaitForWindowLoad(OYS_Window window) => UserInterfaceSingleton.WaitForWindowCreation(window);
Exemple #7
0
 public static bool CloseWindow(OYS_Window window) => UserInterfaceSingleton.CloseWindow(window);
Exemple #8
0
 public static T CreateWindow <T>() where T : OYS_Window, new() => UserInterfaceSingleton.CreateWindow <T>();
Exemple #9
0
 public static bool Shutdown() => UserInterfaceSingleton.Shutdown();
Exemple #10
0
 public static UserInterfaceSingleton Initialise() => UserInterfaceSingleton.Instantiate();