Esempio n. 1
0
        static void ProcessFactory(AbstractWordFactory wordFactory, string generation)
        {
            var    word   = wordFactory;
            Client client = null;

            if (word != null)
            {
                client = new Client(word);
                client.Run();
            }
            else
            {
                Console.WriteLine($"This generation ({generation}) has already ran twice.");
            }
        }
Esempio n. 2
0
 public Client(AbstractWordFactory wordGeneration)
 {
     abstractButton  = wordGeneration.CreateButton();
     abstractPanel   = wordGeneration.CreatePanel();
     abstractTextbox = wordGeneration.CreateTextbox();
 }