Exemplo n.º 1
0
 private void LoadSavedShapes()
 {
     foreach (Shape item in StateHandler.LoadData())
     {
         listBox2.Items.Add(item.Tag + $"  ({item.ID})");
         SaveStack.Add(item);
         ConsoleLog("Loaded Saved Shapes");
     }
 }
Exemplo n.º 2
0
        private void Save()
        {
            List <string> FormatedForSave = new List <string>();

            foreach (Shape s in SaveStack)
            {
                FormatedForSave.Add("PositionX " + s.Position.X + " | PositionY " + s.Position.Y + " | ScaleX " + s.Scale.X + " | ScaleY " + s.Scale.Y + " | Tag " + s.Tag + " | Type " + s.type + " | R" + s.color.R + " | G" + s.color.G + " | B" + s.color.B + " | Z" + s.Z);
            }
            StateHandler.SaveData(FormatedForSave);
        }