Exemple #1
0
        static void monitor_GameUpdated(Game game)
        {
            string path = Path.Combine(Application.StartupPath, string.Format("{0}.bmp", game.ToString()));

            Renderer.RenderGame(path, game);
            DesktopWallpaper.Change(path);
        }
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);
        }