Exemplo n.º 1
0
 public static void UpdateEntry(DateTime day, SymptomData data)
 {
     if (_calendarDictionary.ContainsKey(day))
     {
         Debug.LogWarning($"Same date {day.ToLongDateString()} log data already exist. Updating it.");
         _calendarDictionary[day].UpdateData(data);
     }
     else
     {
         _calendarDictionary.Add(day, new LogData {
             symptomData = data
         });
     }
 }