Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }