예제 #1
0
        public static void Main(string[] args)
        {
            LcdDisplay lcdDisplay = new LcdDisplay(                                        //
                new DigitsSplitter(new NumeralSystem(), new DigitFactory(new Patterns())), //
                new DigitScaler(new ScalingRepeater()),                                    //
                new DigitPrinter(new Zipper()));

            int     number  = Convert.ToInt32(args[0]);
            Scaling scaling = Scaling.Of(Convert.ToInt32(args[1]));

            Console.WriteLine(lcdDisplay.ToLcd(number, scaling));
            Console.ReadKey();
        }
예제 #2
0
 public Scaling GetScaling()
 {
     return(args.Length > 1 ? Scaling.Of(Convert.ToInt32(args[1])) : Scaling.None);
 }