예제 #1
0
        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();
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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();
                }
            }
        }
예제 #4
0
 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();
         }
     }
 }
예제 #5
0
 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);
     }
 }