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(); }
public Scaling GetScaling() { return(args.Length > 1 ? Scaling.Of(Convert.ToInt32(args[1])) : Scaling.None); }