private void CloseRendu() { if (fenetreRendu != null) { fenetreRendu.Hide(); fenetreRendu.Close(); fenetreRendu.Dispose(); fenetreRendu = null; } }
private void chkRendu_CheckedChanged(object sender, System.EventArgs e) { if (chkRendu.Checked) { fenetreRendu = new Rendu(BmpLock.Bitmap); fenetreRendu.Show(); Render(); } else { CloseRendu(); } }