Пример #1
0
        private void tsi_Click(object sender, EventArgs e)
        {
            if (dataGridView1.CurrentRow.Index >= 0)
            {
                int jidCol = GetJidCol();
                GetNickCol();

                if (jidCol != -1)
                {
                    Jid jid = new Jid(dataGridView1.CurrentRow.Cells[jidCol].Value.ToString());
                    if (sender == tsiAddContact)
                    {
                        string nick    = null;
                        int    nickCol = GetNickCol();
                        if (nickCol != -1)
                        {
                            nick = dataGridView1.CurrentRow.Cells[nickCol].Value.ToString();
                        }

                        frmAddRoster frmAdd = new frmAddRoster(jid, nick, m_XmppCon);
                        frmAdd.Show();
                    }
                    else if (sender == tsiVcard)
                    {
                        frmVcard frmCard = new frmVcard(jid, m_XmppCon);
                        frmCard.Show();
                    }
                }
            }

            //}
        }
Пример #2
0
        private void ctxMnuRosterVcard_Click(object sender, System.EventArgs e)
        {
            ListViewItem itm = GetSelectedListViewItem();

            if (itm != null)
            {
                frmVcard f = new frmVcard(new Jid(itm.Tag.ToString()), XmppCon);
                f.Show();
            }
        }
Пример #3
0
		private void ctxMnuRosterVcard_Click(object sender, System.EventArgs e)
		{
			ListViewItem itm = GetSelectedListViewItem();
			if (itm != null)
			{				 
				frmVcard f = new frmVcard( new Jid(itm.Tag.ToString()), XmppCon);
				f.Show();
			}
		}
Пример #4
0
 private void vcardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RosterNode node = rosterControl.SelectedItem();
     if (node != null)
     {
         frmVcard f = new frmVcard(node.RosterItem.Jid, XmppCon);
         f.Show();
     }
 }
Пример #5
0
        private void tsi_Click(object sender, EventArgs e)
        {
            if (dataGridView1.CurrentRow.Index >= 0)
            {
                int jidCol = GetJidCol();
                GetNickCol();

                if (jidCol != -1)
                {
                    Jid jid = new Jid(dataGridView1.CurrentRow.Cells[jidCol].Value.ToString());
                    if (sender == tsiAddContact)
                    {
                        string nick = null;
                        int nickCol = GetNickCol();
                        if (nickCol != -1)
                            nick = dataGridView1.CurrentRow.Cells[nickCol].Value.ToString();

                        frmAddRoster frmAdd = new frmAddRoster(jid, nick, m_XmppCon);
                        frmAdd.Show();
                    }
                    else if (sender == tsiVcard)
                    {
                        frmVcard frmCard = new frmVcard(jid, m_XmppCon);
                        frmCard.Show();
                    }
                }
            }

            //}
        }