Esempio n. 1
0
        static void Main(string[] args)
        {
            ReportInfo info = new ReportInfo();
            info.Title = "Ektre";
            info.TotalCost = 100;
            info.Expenses = new List<string>();
            info.Expenses.Add("Alişveriş1");
            info.Expenses.Add("Alişveriş2");
            info.Expenses.Add("Alişveriş3");
            info.Expenses.Add("Alişveriş4");

            ReportBuilderBase builder = new XmlReportBuilder(info);
            ReportManager reportManager = new ReportManager(builder);

            string str = reportManager.BuildUpsideDown();
            Console.WriteLine(str);
            Console.ReadLine();

        }
 public DivBasedReportBuilder(ReportInfo reportInfo) : base(reportInfo)
 {
 }
Esempio n. 3
0
 public ReportBuilderBase(ReportInfo reportInfo)
 {
     Info = reportInfo;
 }
Esempio n. 4
0
 public XmlReportBuilder(ReportInfo reportInfo) : base(reportInfo)
 {
 }
Esempio n. 5
0
 public DivBasedReportBuilder(ReportInfo reportInfo) : base(reportInfo)
 {
 }