예제 #1
0
        private void lnkCreateCompany_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmViewCompany toShow = new frmViewCompany(EditModes.AddDialog);

            if (toShow.ShowDialog() == DialogResult.OK)
            {
                InitializeCompanies(toShow.FormCompany.id);
            }
        }
예제 #2
0
 private void lnkEditCompany_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (cmbInsuranceCarrier.SelectedIndex >= 0)
     {
         frmViewCompany toShow = new frmViewCompany((company)cmbInsuranceCarrier.SelectedItem, _currentContactInfo);
         if (toShow.ShowDialog() == DialogResult.OK)
         {
             InitializeCompanies(toShow.FormCompany.id);
         }
     }
 }