public PlanCases Clone() { PlanCases plancases = new PlanCases(); plancases.IsLoading = true; foreach (PlanCase plancase in this) { plancases.Add(plancase.Clone()); } plancases.IsLoading = false; return(plancases); }
private void RestoreBackups() { _strPlanName = _strPlanName_orig; _bolCAPP = _bolCAPP_orig; _bolNonCAPP = _bolNonCAPP_orig; _bolIsFiled = _bolIsFiled_orig; _bolNonComplianceNotice = _bolNonComplianceNotice_orig; _bolHasInsurance = _bolHasInsurance_orig; _bolInContempt = _bolInContempt_orig; _FiledDate = _FiledDate_orig; _PlanCases = (_PlanCases_orig == null) ? null : _PlanCases_orig.Clone(); _PlanFees = (_PlanFees_orig == null) ? null : _PlanFees_orig.Clone(); _PlanPaymentArrangements = (_PlanPaymentArrangements_orig == null) ? null : _PlanPaymentArrangements_orig.Clone(); _PlanPayments = (_PlanPayments_orig == null) ? null : _PlanPayments_orig.Clone(); }
private void SaveBackups() { _strPlanName_orig = _strPlanName; _bolCAPP_orig = _bolCAPP; _bolNonCAPP_orig = _bolNonCAPP; _bolIsFiled_orig = _bolIsFiled; _bolNonComplianceNotice_orig = _bolNonComplianceNotice; _bolHasInsurance_orig = _bolHasInsurance; _bolInContempt_orig = _bolInContempt; _FiledDate_orig = _FiledDate; // force payment collection to refresh itself. _PlanPayments = null; _PlanCases_orig = (_PlanCases == null) ? null : _PlanCases.Clone(); _PlanFees_orig = (_PlanFees == null) ? null : _PlanFees.Clone(); _PlanPaymentArrangements_orig = (_PlanPaymentArrangements == null) ? null : _PlanPaymentArrangements.Clone(); _PlanPayments_orig = (_PlanPayments == null) ? null : _PlanPayments.Clone(); }
private void InitializeProperties() { _strPlanName_orig = _strPlanName = string.Empty; _bolCAPP_orig = _bolCAPP = false; _bolNonCAPP_orig = _bolNonCAPP = false; _bolIsFiled_orig = _bolIsFiled = false; _bolNonComplianceNotice_orig = _bolNonComplianceNotice = false; _bolHasInsurance_orig = _bolHasInsurance = false; _bolInContempt_orig = _bolInContempt = false; _FiledDate_orig = _FiledDate = null; _PlanCases_orig = null; _PlanCases = null; _PlanFees_orig = null; _PlanFees = null; _PlanPaymentArrangements_orig = null; _PlanPaymentArrangements = null; _PlanPayments_orig = null; _PlanPayments = null; }