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