void ReleaseDesignerOutlets() { if (ClickedLabel1 != null) { ClickedLabel1.Dispose(); ClickedLabel1 = null; } if (ClickedLabel2 != null) { ClickedLabel2.Dispose(); ClickedLabel2 = null; } if (ClickedLabel3 != null) { ClickedLabel3.Dispose(); ClickedLabel3 = null; } if (ClickedLabel4 != null) { ClickedLabel4.Dispose(); ClickedLabel4 = null; } if (ClickedLabel != null) { ClickedLabel.Dispose(); ClickedLabel = null; } }
void ReleaseDesignerOutlets() { if (ClickedLabel1 != null) { ClickedLabel1.Dispose(); ClickedLabel1 = null; } if (DocumentEditor != null) { DocumentEditor.Dispose(); DocumentEditor = null; } }