private void FillFrequencies() { foreach (Benefit ben in _listBenefitsAll) { bool isFrequencyBen = true; //Diagnostic group if (Benefits.IsBitewingFrequency(ben)) { FillBenefit(ben, textBW, comboBW); } else if (Benefits.IsPanoFrequency(ben)) { FillBenefit(ben, textPano, comboPano); } else if (Benefits.IsExamFrequency(ben)) { FillBenefit(ben, textExams, comboExams); } else if (Benefits.IsCancerScreeningFrequency(ben)) { FillBenefit(ben, textCancerScreenings, comboCancerScreenings); } //Preventive group else if (Benefits.IsProphyFrequency(ben)) { FillBenefit(ben, textProphy, comboProphy); } else if (Benefits.IsFlourideFrequency(ben)) { FillBenefit(ben, textFlouride, comboFlouride); } else if (Benefits.IsSealantFrequency(ben)) { FillBenefit(ben, textSealants, comboSealants); } //Restorative group else if (Benefits.IsCrownFrequency(ben)) { FillBenefit(ben, textCrown, comboCrown); } //Periodontal group else if (Benefits.IsSRPFrequency(ben)) { FillBenefit(ben, textSRP, comboSRP); } else if (Benefits.IsFullDebridementFrequency(ben)) { FillBenefit(ben, textDebridement, comboDebridement); } else if (Benefits.IsPerioMaintFrequency(ben)) { FillBenefit(ben, textPerioMaint, comboPerioMaint); } //Prosthodontics group else if (Benefits.IsDenturesFrequency(ben)) { FillBenefit(ben, textDentures, comboDentures); } //Implants group else if (Benefits.IsImplantFrequency(ben)) { FillBenefit(ben, textImplant, comboImplant); } else { isFrequencyBen = false; } if (isFrequencyBen) { _listFrequencyBenefits.Add(ben); } } }