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