Example #1
0
        static void Main(string[] args)
        {
            var service = new PointService(new PointIconFactory());

            foreach (var point in service.GetPoints())
            {
                point.Draw();
            }
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            var pointService = new PointService(new PointIconFactory());

            var points = pointService.GetPoints();

            if (points == null)
            {
                throw new Exception("points don't exist");
            }

            foreach (var point in points)
            {
                point.Draw();
            }

            Console.ReadKey();
        }
Example #3
0
        static void Main(string[] args)
        {
            var pointService = new PointService();

            var points = pointService.GetPoints();

            foreach (var point in points)
            {
                point.Draw();
            }

            Console.WriteLine("--- Exercise ---");

            var sheet = new SpreadSheet();

            sheet.SetContent(0, 0, "Hello");
            sheet.SetContent(1, 0, "World");
            sheet.SetFontFamily(0, 0, "Arial");
            sheet.Render();

            Console.ReadLine();
        }