예제 #1
0
        private static void ShowQuickStartGuide()
        {
            var t = new Thread(() =>
            {
                bool createdNew;
                var mut = new Mutex(true, Constants.Identifier + "QuickStartGuideWindow", out createdNew);
                if (!createdNew) return;
                
                using (var frm = new QuickStartGuideForm())
                {
                    Application.Run(frm);
                    mut.Close();
                }

                GC.Collect();
            }) { IsBackground = true };

            t.SetApartmentState(ApartmentState.STA);
            t.Start();
        }
예제 #2
0
        private static void ShowQuickStartGuide()
        {
            var t = new Thread(() =>
            {
                bool createdNew;
                var mut = new Mutex(true, Constants.Identifier + "QuickStartGuideWindow", out createdNew);
                if (!createdNew) return;

                /*using (var proc = Process.GetCurrentProcess())
                {
                    //proc.PriorityClass = ProcessPriorityClass.Normal;
                }*/

                using (var frm = new QuickStartGuideForm())
                {
                    Application.Run(frm);
                    mut.Close();
                }

                GC.Collect();

                //using (var proc = Process.GetCurrentProcess()) proc.PriorityClass = ProcessPriorityClass.High;

            }) { IsBackground = true };

            t.SetApartmentState(ApartmentState.STA);

            t.Start();
        }