Exemplo n.º 1
0
        static void Main()
        {
            try
            {
                AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                WindowManager.Start();

                Application.Run(new Taskbar());
            }
            finally
            {
                WindowManager.Stop();
                UxTheme.CloseThemes();
                AppBar.UnregisterAll();
            }
        }