public ReportModel GetArchivedReport(string key) { var archivedReport = new ReportModel(); var settings = IsolatedStorageSettings.ApplicationSettings; if (settings != null && settings.Contains(key)) { archivedReport = settings[key] as ReportModel; } return archivedReport; }
private static void Save(ReportModel report) { var settings = IsolatedStorageSettings.ApplicationSettings; if (settings.Contains(Globals.LatestReportString)) { Archive(); settings[Globals.LatestReportString] = report; } else { settings.Add(Globals.LatestReportString, report); } settings.Save(); }