コード例 #1
0
        static void Main(string[] args)
        {
            string[]    names             = new string[_peopleCount];
            int[]       ages              = new int[names.Length];
            CultureInfo cultureInfo       = CultureInfo.InvariantCulture;
            var         counting          = new Counting();
            var         consoleChangColor = new ConsoleChangeColor();
            var         writer            = new ConsoleWriter(cultureInfo, consoleChangColor);
            var         inputWork         = new ConsoleInput(writer);
            var         outputWork        = new ConsoleOutput(writer, counting);

            work(inputWork, outputWork, names, ages);
            Console.ReadKey();
        }
コード例 #2
0
 public ConsoleOutput(ConsoleWriter pConsoleWriter, Counting pcounting)
 {
     consoleWriter = pConsoleWriter;
     counting      = pcounting;
 }