Exemple #1
0
        static void Main()
        {
            string currentWallpaper = DesktopWallpaper.GetCurrentWallpaper();
            using (NHLGameMonitor monitor = new NHLGameMonitor())
            {
                monitor.GameUpdated += monitor_GameUpdated;
                monitor.Begin();

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                using (NHLSettingsForm form = new NHLSettingsForm(monitor))
                {
                    Application.Run(form);
                }
            }
            DesktopWallpaper.Change(currentWallpaper);
        }
Exemple #2
0
        static void Main()
        {
            string currentWallpaper = DesktopWallpaper.GetCurrentWallpaper();

            using (NHLGameMonitor monitor = new NHLGameMonitor())
            {
                monitor.GameUpdated += monitor_GameUpdated;
                monitor.Begin();

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                using (NHLSettingsForm form = new NHLSettingsForm(monitor))
                {
                    Application.Run(form);
                }
            }
            DesktopWallpaper.Change(currentWallpaper);
        }