Exemple #1
0
        private static void StartDialog()
        {
            var threadObj = new Thread(() =>
            {
                var application = new TestApplication();
                application.Run();
            });

            threadObj.SetApartmentState(ApartmentState.STA);
            threadObj.Start();
            threadObj.Join();
        }
Exemple #2
0
 private static void StartDialog()
 {
     var threadObj = new Thread(() =>
     {
         var application = new TestApplication();
         application.Run();
     });
     threadObj.SetApartmentState(ApartmentState.STA);
     threadObj.Start();
     threadObj.Join();
 }