Пример #1
0
 private void ClearEvidenceForHotThought(SQLiteDatabase sqLiteDatabase)
 {
     try
     {
         if (EvidenceForHotThoughtList.Count > 0)
         {
             foreach (var evidenceForHotThought in EvidenceForHotThoughtList)
             {
                 if (!evidenceForHotThought.IsNew)
                 {
                     evidenceForHotThought.Remove(sqLiteDatabase);
                 }
             }
             EvidenceForHotThoughtList.Clear();
         }
     }
     catch (Exception e)
     {
         throw new Exception("Attempt to clear Evidence for Hot Thoughts failed - " + e.Message);
     }
 }