/// <summary> /// Recovers backed up Intervention instances that were completed. /// </summary> private void RecoverCompletedInterventions() { if (Recoverable()) { String[] filenames = Directory.GetFiles(outputDirectory, "CompletedIntervention*.tmp"); if (filenames.Length > 0) { foreach (string fn in filenames) { try { fileStream = File.OpenRead(fn); Intervention.AddCompletedIntervention((Intervention)serializer.Deserialize(fileStream)); fileStream.Close(); } catch (Exception ex) { LogException(ex); } } } } }