Beispiel #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();

        }
Beispiel #2
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();
        }