protected virtual void SaveBackups() { _intFeeTypeId_orig = _intFeeTypeId; _dblAmount_orig = _dblAmount; _Payments_orig = (_Payments == null) ? null : _Payments.Clone(); }
/// <summary> /// Restores all of the properties to their last saved state. /// After restoring the variables it resets the state of the object. /// </summary> protected virtual void RestoreBackups() { FeeTypeId = _intFeeTypeId_orig; _dblAmount = _dblAmount_orig; _Payments = (_Payments_orig == null) ? null : _Payments_orig.Clone(); }
public FeePayments Clone() { FeePayments payments = new FeePayments(); payments.IsLoading = true; foreach (FeePayment payment in this) { payments.Add(payment.Clone()); } payments.IsLoading = false; return(payments); }
protected virtual void InitializeProperties() { if (Helper.FeeTypeList.Count > 0) { _intFeeTypeId_orig = FeeTypeId = Helper.FeeTypeList[0].ID; } else { _intFeeTypeId_orig = _intFeeTypeId = 0; } _dblAmount_orig = _dblAmount = 0; _Payments_orig = null; _Payments = null; }