void ReleaseDesignerOutlets() { if (ButtonAnswer != null) { ButtonAnswer.Dispose(); ButtonAnswer = null; } if (FieldForPredict != null) { FieldForPredict.Dispose(); FieldForPredict = null; } if (LabelAnswer != null) { LabelAnswer.Dispose(); LabelAnswer = null; } if (LabelLinear != null) { LabelLinear.Dispose(); LabelLinear = null; } if (LabelMainInfo != null) { LabelMainInfo.Dispose(); LabelMainInfo = null; } if (SwitchExp != null) { SwitchExp.Dispose(); SwitchExp = null; } if (SwitchLinear != null) { SwitchLinear.Dispose(); SwitchLinear = null; } if (SwitchPower != null) { SwitchPower.Dispose(); SwitchPower = null; } }
void ReleaseDesignerOutlets() { if (ButtonInput != null) { ButtonInput.Dispose(); ButtonInput = null; } if (LabelAnswer != null) { LabelAnswer.Dispose(); LabelAnswer = null; } if (LabelTime != null) { LabelTime.Dispose(); LabelTime = null; } }