Esempio n. 1
0
 private void buttonOpenFormStatistics_Click(object sender, EventArgs e)
 {
     if (formStatistics.IsDisposed)
     {
         formStatistics = new FormStatistics(points, lines, triangles);
     }
     formStatistics.Show();
 }
Esempio n. 2
0
 private void FormGround_Load(object sender, EventArgs e)
 {
     LoadSave();
     points    = new List <Point>();
     lines     = new List <Line>();
     triangles = new List <Triangle>();
     bitmap    = new Bitmap(pictureBoxFigure.Width, pictureBoxFigure.Height);
     g         = Graphics.FromImage(bitmap);
     pictureBoxFigure.Image = bitmap;
     formStatistics         = new FormStatistics(points, lines, triangles);
 }