Beispiel #1
0
        private static void AddWithChildren(IInformativeAnswer informativeResponse, ConsoleColor mainColor, ConsoleColor secondaryColor, List <ConsoleOutput> returnValue)
        {
            returnValue.Add(new ConsoleOutput(mainColor, informativeResponse.Text + " "));

            foreach (var child in informativeResponse.Children)
            {
                returnValue.Add(new ConsoleOutput(secondaryColor, child.Text));
            }
        }
Beispiel #2
0
        public InformativeAnswer With(IInformativeAnswer childAnswer)
        {
            Children.Add(childAnswer);

            return(this);
        }