private void button5_Click(object sender, EventArgs e) { ShapesList.RemoveShape(ShapesList.List[listBox1.SelectedIndex]); ListUpdate(); }