Exemple #1
0
 private void OnAfterContactCreated(object source, ContactEventArgs e)
 {
     //Event handler for new contact created
     this.Cursor = Cursors.WaitCursor;
     try {
         //Persist the new contact
         int id = CustomerProxy.CreateContact(e.Contact);
         this.mContacts.Clear();
         this.mContacts.Merge(CustomerProxy.GetContacts());
         this.ctlContact.SelectedValue = id;
     }
     catch (Exception ex) { reportError(ex); }
     finally { this.Cursor = Cursors.Default; }
 }