private void Form1_Load(object sender, EventArgs e) { //建造者 Directory dir = new Directory(); Builder.Easy.Builder bd1 = new Builder.Easy.ConcreateBuilder1(); Builder.Easy.Builder bd2 = new Builder.Easy.ConcreateBuilder2(); dir.ConStract(bd1); Builder.Easy.Product p1 = new Builder.Easy.Product(); p1 = bd1.GetResult(); p1.Show(); dir.ConStract(bd2); Builder.Easy.Product p2 = new Builder.Easy.Product(); p2 = bd1.GetResult(); p2.Show(); }