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 button7_Click(object sender, EventArgs e) { MessageBox.Show("CPU Temperature is " + Console.GetTemperature(JRPC.TemperatureType.CPU) + " degrees F"); }