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