private void toolStripButtonLine_Click(object sender, EventArgs e) { CurrentFactory = new LineShapeFactory(); Factory current = new LineFactory(pnlMain); CurrentDrawman = current.FactoryMethod(); }