Ejemplo n.º 1
0
        /// <summary>
        /// Connect to default xbox console
        /// </summary>
        private void ConnectXBOX()
        {
            try
            {
                var XboxManager = new XboxManager();
                Xbox = XboxManager.OpenConsole(XboxManager.DefaultConsole);
                Xbox.OpenConnection(null);

                IsConsoleConnected = true;
                ConsoleType        = "XBOX";

                SetStatusConsole(Xbox.Name);
                EnableConsoleActions();

                MenuItemConnectPS3.Enabled = false;

                MenuItemXBOXConnect.Visible    = false;
                MenuItemXBOXDisconnect.Visible = true;

                SetStatus("Successfully connected to console.");
                XtraMessageBox.Show(this, "Connected to console.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                SetStatus("Couldn't connect to console - Error: " + ex.Message, ex);
                XtraMessageBox.Show(this, "Unable to connect to console.\n\nError Message:/n: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }