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(); } } } //} }
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(); } }
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(); } }
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(); } }
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(); } } } //} }