Exemple #1
0
        private void btnAddNewContact_Click(object sender, EventArgs e)
        {
            frmContact frm = new frmContact();

            frm.PartyID = this.SelectedPartyID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                PopulateContactsGrid();
            }
        }
Exemple #2
0
 private void btnAddNewContact_Click_1(object sender, EventArgs e)
 {
     try
     {
         frmContact frm = new frmContact();
         frm.PartyID = this.SelectedPartyID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateContactsGrid();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "frmSalesLead::btnAddNewContact_Click_1", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }