var pfat = new PersonFatBuilder(pictureBox2.CreateGraphics(), p);
PersonDirector pd = new PersonDirector(pfat);
pd.CreatePerson();
复制代码
如果 要建造一个瘦人类 只需把 var pfat = new PersonFatBuilder(pictureBox2.CreateGraphics(), p);
改成
var pthin = new PersonThinBuilder(pictureBox1.CreateGraphics(),p);