public static Conference GetConference(bool doPartial) { Conference conf = new Conference(); var sessions = SessionManager.GetSessionList(doPartial); conf.Sessions = sessions; foreach(var session in sessions) { conf.Speakers.AddRange(session.SpeakerList); } //conf.Exhibitors = ExhibitorManager.GetExhibitorList(doPartial); return conf; }
private void DoExhibitors(string path) { bool doPartial = parseMode == "partial"; Console.WriteLine("Getting exhibitors"); Conference conf = new Conference(); conf.Exhibitors = ExhibitorManager.GetExhibitorList(doPartial); Console.WriteLine(string.Concat(conf.Exhibitors.Count, " exhibitors")); Console.WriteLine("Writing output"); using(TextWriter tw = File.CreateText(Path.Combine(path, "Exhibitors.xml"))) { XmlSerializer serializer = new XmlSerializer(typeof(Conference)); serializer.Serialize(tw, conf); } using(TextWriter tw = File.CreateText(Path.Combine(path, "Exhibitors.html"))) { tw.Write(DateTime.Now.ToString()); } }