예제 #1
0
        internal static void Launch()
        {
            if (Current != null)
            {
                return;
            }

            var th = new Thread(() =>
            {
                var debugView = new DebugView();
                debugView.Show();
                Dispatcher.Run();
            });

            th.SetApartmentState(ApartmentState.STA);
            th.IsBackground = true;
            th.Start();
        }
예제 #2
0
        internal static void Launch()
        {
            if (Current != null)
            {
                return;
            }

            Thread th = new Thread(() =>
            {
                DebugView debugView = new DebugView();
                debugView.Show();
                System.Windows.Threading.Dispatcher.Run();
            });

            th.SetApartmentState(ApartmentState.STA);
            th.IsBackground = true;
            th.Start();
        }