Exemplo n.º 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();
                    }
                }
            }

            //}
        }
Exemplo n.º 2
0
 private void toolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
 {
     if (e.Button == tbbAdd)
     {
         frmAddRoster f = new frmAddRoster(XmppCon);
         f.Show();
     }
 }
Exemplo n.º 3
0
		private void toolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if (e.Button == tbbAdd)
			{
				frmAddRoster f = new frmAddRoster(XmppCon);
				f.Show();
			}
		}
Exemplo n.º 4
0
 private void toolStripButtonAdd_Click(object sender, EventArgs e)
 {
     frmAddRoster f = new frmAddRoster(XmppCon);
     f.Show();    
 }
Exemplo n.º 5
0
        private void mnuFileAddContact_Click(object sender, System.EventArgs e)
        {
            frmAddRoster f = new frmAddRoster(XmppCon);

            f.Show();
        }
Exemplo n.º 6
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();
                    }
                }
            }

            //}
        }
Exemplo n.º 7
0
 private void mnuFileAddContact_Click(object sender, System.EventArgs e)
 {
     frmAddRoster f = new frmAddRoster(XmppCon);
     f.Show();
 }