コード例 #1
0
		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;
		}
コード例 #2
0
ファイル: ParserApp.cs プロジェクト: jorik041/mobile-samples
        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());
            }
        }