예제 #1
0
파일: dlgIssue.cs 프로젝트: jpheary/Argix08
 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; }
 }