예제 #1
0
        private void toolBar_btnCancel_Click(object sender)
        {
            ContactDB.CancelAllChanges();
            contact contact = contactViewSource.View.CurrentItem as contact;

            contact.State = EntityState.Unchanged;
        }
예제 #2
0
 private void toolBar_btnCancel_Click(object sender)
 {
     dbContext.CancelAllChanges();
 }