/// <summary>Adds an update to the history.</summary> /// <param name="sender">The object that called the event.</param> /// <param name="e">The event data.</param> static void AddHistory(object sender, UpdateInstalledEventArgs e) { Collection <Suh> history = File.Exists(HistoryFile) ? Utilities.Deserialize <Collection <Suh> >(HistoryFile) : new Collection <Suh>(); history.Add(e.Update); Utilities.Serialize(history, HistoryFile); }
/// <summary>Adds an update to the history.</summary> /// <param name="sender">The object that called the event.</param> /// <param name="e">The event data.</param> static void AddHistory(object sender, UpdateInstalledEventArgs e) { Collection<Suh> history = File.Exists(HistoryFile) ? Utilities.Deserialize<Collection<Suh>>(HistoryFile) : new Collection<Suh>(); history.Add(e.Update); Utilities.Serialize(history, HistoryFile); }