private void AddNewSymptomsRange(ICollection <Symptom> symptoms) => Symptoms .AddRange( symptoms .Where(x => !String.IsNullOrEmpty(x.Name)) .Select(x => { x.SymptomId = 0; return(x); }) .AsEnumerable() );
public void Copy(FlowDataCache flowDataCache) { Symptoms.Clear(); Symptoms.AddRange(flowDataCache.Symptoms); Diagnoses.Clear(); Diagnoses.AddRange(flowDataCache.Diagnoses); Treatments.Clear(); Treatments.AddRange(flowDataCache.Treatments); DialogList.Clear(); DialogList.AddRange(flowDataCache.DialogList); Variables.ValuesDictionary.Clear(); Variables.SetValues(flowDataCache.Variables.ValuesDictionary); }