Esempio n. 1
0
        public void PurpleButonnClick(object sender, EventArgs e)
        {
            var blueFactory = new BlueButtonFactory();

            this.Controls.Add(blueFactory.Create());
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var blueFactory = new BlueButtonFactory();

            this.Controls.Add(blueFactory.Create());
        }