Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (DebugSwitch.ThreadCount)
            {
                timer = new Timer(new TimerCallback(p =>
                {
                    Debug.WriteLine("Current Thread Count is " + Process.GetCurrentProcess().Threads.Count);
                }), this, 0, 1000);
            }

#if !DEBUG
            FzLib.Program.Runtime.UnhandledException.RegistAll();
            FzLib.Program.Runtime.UnhandledException.UnhandledExceptionCatched += UnhandledException_UnhandledExceptionCatched;
#endif
            InitializeTheme();
            Current = this;
            SplashWindow.TryShow();

            FileIconUtility.UpdateSettings();

            MainWindow win = new MainWindow();
            MainWindow = win;
            win.Show();
            SplashWindow.TryClose();
        }