Exemplo n.º 1
0
 public void DiscardChangesItemClickHandler(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (ObjectsToSave(unitOfWork))
     {
         if (XtraMessageBox.Show("This operation is going to discard all unsaved changes. Are you sure you want to proceed?", "Question",
                                 MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             TransactionalChangeHandler.DiscardChanges <T>(unitOfWork, topLevelCollection);
         }
     }
 }