private void MainWindow_Load(object sender, EventArgs e) { ListShapes = new List <Shape>(); ListShapes = ShapeBinSerialazier.Deserialize("Save.bin"); ListBoxUpdate(sender, e); double s = Convert.ToDouble("1,1"); }
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"); }