private void simpleFactoryToolStripMenuItem_Click(object sender, EventArgs e) { UpdateOutput("A factory is called and will return an instance following an interface definition, no abstract class used."); DogFactory dogFactory = new DogFactory(); IDog dog; dog = dogFactory.GetDog(Dogs.Collie); UpdateOutput(dog.Bark()); dog = dogFactory.GetDog(Dogs.Poodle); UpdateOutput(dog.Bark()); dog = dogFactory.GetDog(Dogs.Wolfhound); UpdateOutput(dog.Bark()); UpdateOutput(""); }