private void button3_Click(object sender, EventArgs e) { foreach (var t in Serializer.Deserialize <List <Figure> >(File)) { ShapesList.AddShape(t); } ListUpdate(); }
private void button5_Click(object sender, EventArgs e) { ShapesList.RemoveShape(ShapesList.List[listBox1.SelectedIndex]); ListUpdate(); }