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 toolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) { if (e.Button == tbbAdd) { frmAddRoster f = new frmAddRoster(XmppCon); f.Show(); } }
private void toolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) { if (e.Button == tbbAdd) { frmAddRoster f = new frmAddRoster(XmppCon); f.Show(); } }
private void toolStripButtonAdd_Click(object sender, EventArgs e) { frmAddRoster f = new frmAddRoster(XmppCon); f.Show(); }
private void mnuFileAddContact_Click(object sender, System.EventArgs e) { frmAddRoster f = new frmAddRoster(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(); } } } //} }
private void mnuFileAddContact_Click(object sender, System.EventArgs e) { frmAddRoster f = new frmAddRoster(XmppCon); f.Show(); }