public void DeepAcceptChanges(bool bMyPref) { if (bMyPref) { LaboratorySectionMyPrefItems.DeepAcceptChanges(); } else { LaboratorySectionItems.DeepAcceptChanges(); } }
public bool IsHasChanges(bool bMyPref) { if (bMyPref) { return /*LaboratorySectionMyPrefItems.IsDirty || */(LaboratorySectionMyPrefItems.Count(c => c.IsMarkedToDelete || c.HasChanges) > 0); } return /*LaboratorySectionItems.IsDirty || */(LaboratorySectionItems.Count(c => c.IsMarkedToDelete || c.HasChanges) > 0); }