private void button9_Click(object sender, EventArgs e)
{
CoderBoyz.Send("<iq type='get' to='" + textBox3.Text + "@conference.nimbuzz.com' id='qip_1026'><query xmlns='http://jabber.org/protocol/muc#admin'><item affiliation='admin' /></query></iq>");
}
public void XmlReadadmin(object sender, string xml)
if (base.InvokeRequired)
base.BeginInvoke(new XmlHandler(XmlReadadmin), new object[] { sender, xml });
else
try
xml = xml.Replace("\"", "'");
if (xml.IndexOf("<query xmlns='http://jabber.org/protocol/muc#admin'>") >= 0)
if (xml.IndexOf("affiliation='admin'") >= 0)
xml = xml.Substring(xml.IndexOf("<item jid='") + 11);
xml = xml.Replace("' affiliation='admin' /></query></iq>", "").Replace("' affiliation='admin' />", "");
xml = xml.Replace("role='participant' />", "");
admin = Microsoft.VisualBasic.Strings.Split(xml, "<item jid='", -1, Microsoft.VisualBasic.CompareMethod.Binary);
for (var f = admin.GetLowerBound(0); f <= admin.GetUpperBound(0); f++)
listBox3.Items.Add(admin[f]);
groupBox3.Text = "√" + listBox1.Items.Count + "√:ADMINS";
catch { }
private void timer7_Tick(object sender, EventArgs e)
foreach (object current in this.listBox3.Items)
CoderBoyz.Send("<iq type='set' to='" + textBox3.Text + "@conference.nimbuzz.com'><query xmlns='http://jabber.org/protocol/muc#admin'><item jid='" + textBox7.Text + "' affiliation='none'/></query></iq>");
private void timer8_Tick(object sender, EventArgs e)
textBox7.Text = current.ToString();
private void timer9_Tick(object sender, EventArgs e)
listBox3.Items.Remove(textBox7.Text);
private void button6_Click(object sender, EventArgs e)
Timer7.Start();
Timer7.Interval = 4000;
Timer8.Start();
Timer8.Interval = 4000;
Timer9.Start();
Timer9.Interval = 4000;
private void button10_Click(object sender, EventArgs e)
CoderBoyz.Send("<iq type='get' to='" + textBox3.Text + "@conference.nimbuzz.com' id='qip_1026'><query xmlns='http://jabber.org/protocol/muc#admin'><item affiliation='owner' /></query></iq>");
public void XmlReadowner(object sender, string xml)
base.BeginInvoke(new XmlHandler(XmlReadowner), new object[] { sender, xml });
if (xml.IndexOf("affiliation='owner'") >= 0)
xml = xml.Replace("' affiliation='owner' /></query></iq>", "").Replace("' affiliation='owner' />", "");
owner = Microsoft.VisualBasic.Strings.Split(xml, "<item jid='", -1, Microsoft.VisualBasic.CompareMethod.Binary);
for (var d = owner.GetLowerBound(0); d <= owner.GetUpperBound(0); d++)
listBox4.Items.Add(owner[d]);
groupBox3.Text = "√" + listBox1.Items.Count + "√:OWNERS";
private void timer10_Tick(object sender, EventArgs e)
foreach (object current in this.listBox4.Items)
CoderBoyz.Send("<iq type='set' to='" + textBox3.Text + "@conference.nimbuzz.com'><query xmlns='http://jabber.org/protocol/muc#admin'><item jid='" + textBox8.Text + "' affiliation='none'/></query></iq>");
private void timer11_Tick(object sender, EventArgs e)
textBox8.Text = current.ToString();
private void timer12_Tick(object sender, EventArgs e)
listBox4.Items.Remove(textBox8.Text);
private void button7_Click(object sender, EventArgs e)
timer10.Start();
timer10.Interval = 4000;
timer11.Start();
timer11.Interval = 4000;
timer12.Start();
timer12.Interval = 4000;