Esempio n. 1
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     polygon1?.Dispose();
     polygon2?.Dispose();
     collided?.Dispose();
     graphics?.Dispose();
 }
Esempio n. 2
0
        private void PolygonPanel2_Commited(object sender, System.EventArgs e)
        {
            polygon2.Dispose();
            polygon2 = polygonPanel2.Polygon;

            Reset();
        }