private void toolStripButtonShapeDel_Click(object sender, EventArgs e) { foreach (var sh in Sh.Sh) { if (sh.SelectShape) { Sh.Del(sh, false); panel2.Invalidate(); break; } } }