private void InitStartGame() { _game = new Process { StartInfo = { FileName = ConfigurationManager.AppSettings["GameUri"] }, EnableRaisingEvents = true }; _game.Exited += (s, ea) => { if (_controlMouse) { ToggleMouseControl(); } GameExited(); }; _game.Start(); if (_atosOverlay == null) { _atosOverlay = new AtosOverlay(); } _atosOverlay.Activate(); _atosOverlay.Show(); if (!_controlMouse) { ToggleMouseControl(); } }
private void InitStartGame() { _game = new Process { StartInfo = { FileName = ConfigurationManager.AppSettings["GameUri"] }, EnableRaisingEvents = true }; _game.Exited += (s, ea) => { if (_controlMouse) ToggleMouseControl(); GameExited(); }; _game.Start(); if (_atosOverlay == null) { _atosOverlay = new AtosOverlay(); } _atosOverlay.Activate(); _atosOverlay.Show(); if (!_controlMouse) { ToggleMouseControl(); } }