private void button17_Click(object sender, EventArgs e) { if (Connected) { if (IsDevKit == false) { try { string Gamer = listView1.SelectedItems[0].SubItems[1].Text; string XUID = listView1.SelectedItems[0].SubItems[0].Text; Users.SetGamertag(xbc, Gamer, XUID); MessageBox.Show("Gamertag Is Set to " + Gamer); } catch { } } else { try { string Gamer = listView1.SelectedItems[0].SubItems[1].Text; string XUID = listView1.SelectedItems[0].SubItems[0].Text; DevUsers.SetGamertag(xbc, Gamer, XUID); MessageBox.Show("Gamertag Is Set to " + Gamer); } catch { } } } }
private void button7_Click(object sender, EventArgs e) { if (Connected) { if (IsDevKit == false) { Users.SetGamertag(xbc, myini.IniReadValue("MyInfo", "MyGT"), myini.IniReadValue("MyInfo", "MyXUID")); MessageBox.Show("Gamertag Is Set to " + myini.IniReadValue("MyInfo", "MyGT")); } else { DevUsers.SetGamertag(xbc, myini.IniReadValue("MyInfo", "MyGT"), myini.IniReadValue("MyInfo", "MyXUID")); MessageBox.Show("Gamertag Is Set to " + myini.IniReadValue("MyInfo", "MyGT")); } } }
private void karma_Click(object sender, EventArgs e) { if (Connected) { if (IsDevKit == false) { Users.SetGamertag(xbc, "Major Nelson", "00092EEEEEEEFD31"); MessageBox.Show("Gamertag Is Set to Major Nelson"); } else { ulong Xuid = 0L; DevUsers.SetGamertag(xbc, "Major Nelson", "00092EEEEEEEFD31"); DevUsers.GetXuidFromIndex(xbc, 0, out Xuid); DevUsers.JoinParty(xbc, 0, Xuid); MessageBox.Show("Gamertag Is Set to Major Nelson"); } } }
private void button2_Click(object sender, EventArgs e) { if (Connected) { if (IsDevKit == false) { Users.SetGamertag(xbc, textBox1.Text, textBox2.Text); MessageBox.Show("Gamertag Is Set to " + textBox1.Text); } else { ulong Xuid = 0L; DevUsers.SetGamertag(xbc, textBox1.Text, textBox2.Text); DevUsers.GetXuidFromIndex(xbc, 0, out Xuid); DevUsers.JoinParty(xbc, 0, Xuid); MessageBox.Show("Gamertag Is Set to " + textBox1.Text); } } }