protected override string Serialize() { var result = new StringBuilder(); result.AppendLine(base.Serialize()); result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&").Replace("\"", """) + @"</SlideHeader>"); result.AppendLine(@"<Demo>"); foreach (string demo in Demo) { result.AppendLine(@"<Value>" + demo.Replace(@"&", "&").Replace("\"", """) + @"</Value>"); } result.AppendLine(@"</Demo>"); result.AppendLine(@"<Income>"); foreach (string income in Income) { result.AppendLine(@"<Value>" + income.Replace(@"&", "&").Replace("\"", """) + @"</Value>"); } result.AppendLine(@"</Income>"); result.AppendLine(@"<Geographic>"); foreach (string geographic in Geographic) { result.AppendLine(@"<Value>" + geographic.Replace(@"&", "&").Replace("\"", """) + @"</Value>"); } result.AppendLine(@"</Geographic>"); return(result.ToString()); }
protected override string Serialize() { var result = new StringBuilder(); result.AppendLine(base.Serialize()); result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&").Replace("\"", """) + @"</SlideHeader>"); result.AppendLine(@"<Goal1>" + Goal1.Replace(@"&", "&").Replace("\"", """) + @"</Goal1>"); result.AppendLine(@"<Goal2>" + Goal2.Replace(@"&", "&").Replace("\"", """) + @"</Goal2>"); result.AppendLine(@"<Goal3>" + Goal3.Replace(@"&", "&").Replace("\"", """) + @"</Goal3>"); result.AppendLine(@"<Goal4>" + Goal4.Replace(@"&", "&").Replace("\"", """) + @"</Goal4>"); result.AppendLine(@"<Goal5>" + Goal5.Replace(@"&", "&").Replace("\"", """) + @"</Goal5>"); return(result.ToString()); }
protected override string Serialize() { var result = new StringBuilder(); result.AppendLine(base.Serialize()); result.AppendLine(@"<ShowStatement1>" + ShowStatement1 + @"</ShowStatement1>"); result.AppendLine(@"<ShowStatement2>" + ShowStatement2 + @"</ShowStatement2>"); result.AppendLine(@"<ShowStatement3>" + ShowStatement3 + @"</ShowStatement3>"); result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&").Replace("\"", """) + @"</SlideHeader>"); result.AppendLine(@"<Statement1>" + Statement1.Replace(@"&", "&").Replace("\"", """) + @"</Statement1>"); result.AppendLine(@"<Statement2>" + Statement2.Replace(@"&", "&").Replace("\"", """) + @"</Statement2>"); result.AppendLine(@"<Statement3>" + Statement3.Replace(@"&", "&").Replace("\"", """) + @"</Statement3>"); return(result.ToString()); }
protected override string Serialize() { var result = new StringBuilder(); result.AppendLine(base.Serialize()); result.AppendLine(@"<AddAsPageOne>" + AddAsPageOne + @"</AddAsPageOne>"); result.AppendLine(@"<UseGenericCover>" + UseGenericCover + @"</UseGenericCover>"); result.AppendLine(@"<ShowPresentationDate>" + ShowPresentationDate + @"</ShowPresentationDate>"); result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&").Replace("\"", """) + @"</SlideHeader>"); result.AppendLine(@"<Advertiser>" + Advertiser.Replace(@"&", "&").Replace("\"", """) + @"</Advertiser>"); result.AppendLine(@"<DecisionMaker>" + DecisionMaker.Replace(@"&", "&").Replace("\"", """) + @"</DecisionMaker>"); result.AppendLine(@"<PresentationDate>" + PresentationDate + @"</PresentationDate>"); result.AppendLine(@"<Quote>" + Quote.Serialize() + @"</Quote>"); return(result.ToString()); }
protected override string Serialize() { var result = new StringBuilder(); result.AppendLine(base.Serialize()); result.AppendLine(@"<ShowAdvertiser>" + ShowAdvertiser + @"</ShowAdvertiser>"); result.AppendLine(@"<ShowDecisionMaker>" + ShowDecisionMaker + @"</ShowDecisionMaker>"); result.AppendLine(@"<ShowPresentationDate>" + ShowPresentationDate + @"</ShowPresentationDate>"); result.AppendLine(@"<ShowFlightDates>" + ShowFlightDates + @"</ShowFlightDates>"); result.AppendLine(@"<ShowMonthly>" + ShowMonthly + @"</ShowMonthly>"); result.AppendLine(@"<ShowTotal>" + ShowTotal + @"</ShowTotal>"); result.AppendLine(@"<TableOutput>" + TableOutput + @"</TableOutput>"); result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&").Replace("\"", """) + @"</SlideHeader>"); result.AppendLine(@"<Advertiser>" + Advertiser.Replace(@"&", "&").Replace("\"", """) + @"</Advertiser>"); result.AppendLine(@"<DecisionMaker>" + DecisionMaker.Replace(@"&", "&").Replace("\"", """) + @"</DecisionMaker>"); result.AppendLine(@"<PresentationDate>" + PresentationDate + @"</PresentationDate>"); result.AppendLine(@"<FlightDatesStart>" + FlightDatesStart + @"</FlightDatesStart>"); result.AppendLine(@"<FlightDatesEnd>" + FlightDatesEnd + @"</FlightDatesEnd>"); if (MonthlyValue.HasValue) { result.AppendLine(@"<MonthlyValue>" + MonthlyValue + @"</MonthlyValue>"); } if (TotalValue.HasValue) { result.AppendLine(@"<TotalValue>" + TotalValue + @"</TotalValue>"); } result.AppendLine(@"<Items>"); foreach (SimpleSummaryItemState item in ItemsState) { result.AppendLine(@"<Item>" + item.Serialize() + @"</Item>"); } result.AppendLine(@"</Items>"); if (ContractSettings.IsConfigured) { result.AppendLine(String.Format("<ContractSettings>{0}</ContractSettings>", ContractSettings.Serialize())); } return(result.ToString()); }