public void WriteFooter() { switch(this.m_contactType) { case (int)OTCContactType.BetterManContact : ITCPageBetterMan page1 = new ITCPageBetterMan(); page1.End(); break; case (int)OTCContactType.BetterManWin3 : ITCPageBetterMan page2 = new ITCPageBetterMan(); page2.End(); break; case (int)OTCContactType.BetterWomanContact : ITCPageBetterWoman page3 = new ITCPageBetterWoman(); page3.End(); break; case (int)OTCContactType.BetterWomanWin3 : ITCPageBetterWoman page4 = new ITCPageBetterWoman(); page4.End(); break; case (int)OTCContactType.InterceuticalsContact : ITCPage page5 = new ITCPage(); page5.End(); break; case (int)OTCContactType.NewsLetter : ITCPageBetterMan page6 = new ITCPageBetterMan(); page6.End(); break; } }
public void WriteHeader() { switch(this.m_contactType) { case (int)OTCContactType.BetterManContact : ITCPageBetterMan page1 = new ITCPageBetterMan(); page1.OpenHeader(); page1.CloseHeader(); page1.Start(); break; case (int)OTCContactType.BetterManWin3 : ITCPageBetterMan page2 = new ITCPageBetterMan(); page2.OpenHeader(); page2.CloseHeader(); page2.Start(); break; case (int)OTCContactType.BetterWomanContact : ITCPageBetterWoman page3 = new ITCPageBetterWoman(); page3.OpenHeader(); page3.CloseHeader(); page3.Start(); break; case (int)OTCContactType.BetterWomanWin3 : ITCPageBetterWoman page4 = new ITCPageBetterWoman(); page4.OpenHeader(); page4.CloseHeader(); page4.Start(); break; case (int)OTCContactType.InterceuticalsContact : ITCPageBetterMan page5 = new ITCPageBetterMan(); page5.OpenHeader(); page5.CloseHeader(); page5.Start(); break; case (int)OTCContactType.NewsLetter : string bla5 = ""; break; } }