private void button1_Click(object sender, EventArgs e) { try { Console.Connect(out Console, "default"); Console.XNotify("Revision Connected!"); setConnectionStatus(true); } catch { MessageBox.Show("Unable to connect to console"); } }
private void simpleButton1_Click(object sender, EventArgs e) { if (xbox.Connect(out xbox)) //Connecting Console { MessageBox.Show("Successfully Connected to Silica!"); xbox.XNotify("Welcome to Silica (Beta)"); xbox.XNotify("Created by Team Silica!"); label1.ForeColor = Color.Green; label1.Text = "Status: Connected!"; textEdit1.Text = "Kernal Version: " + xbox.GetKernalVersion(); textEdit2.Text = "CPU Key: " + xbox.GetCPUKey(); textEdit3.Text = "CPU Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.CPU); textEdit4.Text = "GPU Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.GPU); textEdit5.Text = "Motherboard Temperature: " + xbox.GetTemperature(JRPC.TemperatureType.MotherBoard); textEdit6.Text = "Xbox I.P Address: " + xbox.XboxIP(); } else { MessageBox.Show("Error, Could not Locate Console!"); //This can be due to Neighborhood not installed, or JRPC2 not set as a plugin. } }
private void connectDefaultConsole() { if (isConnected) { return; } if (xbox.Connect(out xbox)) { try { xbox.XNotify("XeShare - Ready to Screenshot!"); isConnected = true; } catch (Exception ex) { isConnected = false; MessageBox.Show(ex.ToString()); } } }