Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
		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();
		}