private void tsmiEnterRoomTest_Click(object sender, System.EventArgs e) { var input = new FrmInputBox("Enter your Nickname for the chatroom", "Nickname", "Nickname"); if (input.ShowDialog() == DialogResult.OK) { string nickname = input.Result; var roomJid = new Jid("*****@*****.**"); new FrmGroupChat(xmppClient, roomJid, nickname).Show(); } }
private void btnAddGroup_Click(object sender, System.EventArgs e) { var input = new FrmInputBox("Enter new group", "Add group", "Group Name"); if (input.ShowDialog() == DialogResult.OK) { string nickname = input.Result; var newGroup = new ListViewGroup(nickname); DictContactGroups.Add(nickname, newGroup); cboGroup.Items.Add(nickname); } }
private void tsmiEnterRoom_Click(object sender, System.EventArgs e) { var input = new FrmInputBox("Enter your Nickname for the chatroom", "Nickname", "Nickname"); if (input.ShowDialog() == DialogResult.OK) { string nickname = input.Result; input = new FrmInputBox("Enter the Jid of the room to join (e.g. [email protected])", "Room"); if (input.ShowDialog() == DialogResult.OK) { var roomJid = new Jid(input.Result); new FrmGroupChat(xmppClient, roomJid, nickname).Show(); } } }
private void tsmiEnterRoom_Click(object sender, System.EventArgs e) { var input = new FrmInputBox("Enter your Nickname for the chatroom", "Nickname", "Nickname"); if (input.ShowDialog() == DialogResult.OK) { string nickname = input.Result; input = new FrmInputBox("Enter the Jid of the room to join (e.g. [email protected])", "Room"); if (input.ShowDialog() == DialogResult.OK) { var roomJid = new Jid(input.Result); var f = new FrmGroupChat(xmppClient, roomJid, nickname, listContacts); f.MdiParent = FrmParent.Instance; f.Show(); } } }