} // openToolStripMenuItem_Click void LoadFigures(string path) { figures.Load(path); this.Width = figures.borderWidth; this.Height = figures.borderHeight; graphics = panel1.CreateGraphics(); foreach (var figure in figures.figures) { figure.Draw(graphics); } } // Load
} // PaintForm_Paint void LoadFigures(string path) { figures.Load(path); this.Width = figures.borderWidth; this.Height = figures.borderHeight; } // LoadFigures