/// <summary> /// Converts a WinQual Atom ApplicationFile into a StackHashFile. /// </summary> /// <param name="file">WinQual application file to convert.</param> /// <returns>Converted file.</returns> public static StackHashFile ConvertFile(AtomFile file) { if (file == null) { throw new ArgumentNullException("file"); } return(file.File); }
public static StackHashEventCollection GetEventsAtom(AtomFeed feed, AtomFile file, DateTime startTime) { // Get the list of events. AtomEventCollection atomEvents = feed.GetEvents(file, startTime); // Convert to a StackHashEventCollection. StackHashEventCollection atomStackHashEvents = new StackHashEventCollection(); foreach (AtomEvent atomEvent in atomEvents) { atomStackHashEvents.Add(atomEvent.Event); } return(atomStackHashEvents); }