private UserInterfaceSingleton() { Instance = this; Thread = new Thread(() => { Application = new Application(); Loaded.Set(); Application.Run(); }); Thread.SetApartmentState(ApartmentState.STA); Thread.Start(); Loaded.WaitOne(); }
private UserInterfaceSingleton() { Instance = this; Thread = new Thread(() => { Application = new Application(); Loaded.Set(); Application.Run(); }); Thread.SetApartmentState(ApartmentState.STA); Thread.Start(); Loaded.WaitOne(); }