Ejemplo n.º 1
0
        private void toolBar_btnCancel_Click(object sender)
        {
            ContactDB.CancelAllChanges();
            contact contact = contactViewSource.View.CurrentItem as contact;

            contact.State = EntityState.Unchanged;
        }
Ejemplo n.º 2
0
 private void toolBar_btnCancel_Click(object sender)
 {
     dbContext.CancelAllChanges();
 }