Пример #1
0
 public NHLSettingsForm(NHLGameMonitor monitor)
 {
     InitializeComponent();
     gameMonitor = monitor;
     gameMonitor.Grabber.Updated += Grabber_Updated;
     adjust = AdjustGameList;
 }
Пример #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);
        }