Exemplo n.º 1
0
 private void AddNewSymptomsRange(ICollection <Symptom> symptoms) => Symptoms
 .AddRange(
     symptoms
     .Where(x => !String.IsNullOrEmpty(x.Name))
     .Select(x =>
 {
     x.SymptomId = 0;
     return(x);
 })
     .AsEnumerable()
     );
Exemplo n.º 2
0
        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);
        }