Пример #1
0
 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");
 }
Пример #2
0
 private void MainWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     ShapeBinSerialazier.Serialize(ListShapes, "Save.bin");
 }