예제 #1
0
 private void cmdContacts_Click(object sender, EventArgs e)
 {
     try
     {
         //FrmAddContactToDocument frm = new FrmAddContactToDocument(ExtractCustomerList());
         //if (frm.ShowDialog() == DialogResult.OK)
         //{
         //    ReloadCustomerList(frm.Customers);
         //    StartChangeOperation();
         //}
         FrmComplexCustomerSearch cc = new FrmComplexCustomerSearch();
         if (cc.ShowDialog() == DialogResult.OK)
         {
             if (cc.Customer != null)
             {
                 lstcont.Items.Add(cc.Customer);
                 lstcont.SelectedIndex = lstcont.Items.Count - 1;
                 StartChangeOperation();
             }
         }
         cc.Dispose();
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
예제 #2
0
 private void cmdAdd_Click(object sender, EventArgs e)
 {
     try
     {
         FrmComplexCustomerSearch cc = new FrmComplexCustomerSearch();
         if (cc.ShowDialog() == DialogResult.OK)
         {
             if (cc.Customer != null)
             {
                 AddContact(cc.Customer);
             }
         }
     }
     catch (Exception ex)
     {
         WIN.SCHEDULING_APP.GUI.Utility.ErrorHandler.Show(ex);
     }
 }