private void TesterGUI_FormClosing(object sender, FormClosingEventArgs e) { isTesting = false; if (TestImage != null) { TestImage.Dispose(); } }
void ReleaseDesignerOutlets() { if (DescLabel != null) { DescLabel.Dispose(); DescLabel = null; } if (TestImage != null) { TestImage.Dispose(); TestImage = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }