예제 #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
파일: frmMain.cs 프로젝트: don59/agsXmpp
		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
파일: frmMain.cs 프로젝트: don59/agsXmpp
 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
파일: frmSearch.cs 프로젝트: phiree/dzdocs
        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();
                    }
                }
            }

            //}
        }