Exemplo n.º 1
0
 private void toolStripMenuItem3_Click(object sender, EventArgs e)
 {
     DS_XML file = new DS_XML();
     listFigur = file.Load(@"C:\Document\Programs\Net\PaintVector\figureXML.xml");
     foreach(Figure fgg in listFigur)
     {
     this.Controls.Add(fgg);
     }
 }
Exemplo n.º 2
0
 private void SaveToXML_Click(object sender, EventArgs e)
 {
     List<Figure> fg = Controls.OfType<Figure>().Cast<Figure>().ToList(); // создаем массив контролов
     DS_XML file = new DS_XML();
     file.Save(@"C:\Document\Programs\Net\PaintVector\figureXML.xml", fg);
 }