private void ListBoxUpdate(object sender, EventArgs e) { ListBoxShapes.Items.Clear(); for (int i = 0; i < ListShapes.Count; i++) { ListBoxShapes.Items.Add(ListShapes[i].ToString()); } ShapeBinSerialazier.Serialize(ListShapes, "Save.bin"); }
private void MainWindow_FormClosed(object sender, FormClosedEventArgs e) { ShapeBinSerialazier.Serialize(ListShapes, "Save.bin"); }