private bool SaveValues(bool interim) { if (_dataEditControl == null) { return(true); } return(_dataEditControl.SaveValues(interim)); }
private bool SaveValues(bool interim) { var hasSaved = true; if (_dataEditControl != null) { hasSaved &= _dataEditControl.SaveValues(interim); } hasSaved &= CurrentObject.SaveValues(interim); return(hasSaved); }
public override bool SaveValue(bool interim) { // Validate to keep things consistent, i.e. all validators have executed during the save-operation. // Do not abort the save-operation because the value of the ReferenceDataSource should always be allowed to be written back into the parent. Validate(); _userControl.SaveValues(interim); _referenceDataSource.BusinessObject = _userControl.BusinessObject; return(_referenceDataSource.SaveValue(interim)); }