void ReleaseDesignerOutlets() { if (DrawHolder != null) { DrawHolder.Dispose(); DrawHolder = null; } if (LabelHolder != null) { LabelHolder.Dispose(); LabelHolder = null; } if (LearnButton != null) { LearnButton.Dispose(); LearnButton = null; } if (RecognizeButton != null) { RecognizeButton.Dispose(); RecognizeButton = null; } if (TextLabel != null) { TextLabel.Dispose(); TextLabel = null; } }
void ReleaseDesignerOutlets() { if (TextField != null) { TextField.Dispose(); TextField = null; } if (RecognizeButton != null) { RecognizeButton.Dispose(); RecognizeButton = null; } }