示例#1
0
        public void PurpleButonnClick(object sender, EventArgs e)
        {
            var blueFactory = new BlueButtonFactory();

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

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