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

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