Exemplo n.º 1
0
        public static UpdateInstallationLog Create(IEnumerable <UpdateInstallationLogEntry> updateLogEntries)
        {
            var instance = new UpdateInstallationLog();

            instance.AddRange(updateLogEntries);
            return(instance);
        }
Exemplo n.º 2
0
        public string SaveReportLog(UpdateInstallationLog updateLog)
        {
            var s = new Serialization <UpdateInstallationLog>();

            var savedReports = LoadReportLog();

            savedReports.AddRange(updateLog);

            string xml = s.Serialize(savedReports);

            File.WriteAllText(FILENAME, xml);

            return(new FileInfo(FILENAME).FullName);
        }