void ReleaseDesignerOutlets() { if (ALabel != null) { ALabel.Dispose(); ALabel = null; } if (AValue != null) { AValue.Dispose(); AValue = null; } if (btnBack != null) { btnBack.Dispose(); btnBack = null; } if (DataAvgValue != null) { DataAvgValue.Dispose(); DataAvgValue = null; } if (imgData != null) { imgData.Dispose(); imgData = null; } if (imgP0 != null) { imgP0.Dispose(); imgP0 = null; } if (LabelDataAvg != null) { LabelDataAvg.Dispose(); LabelDataAvg = null; } if (lblData != null) { lblData.Dispose(); lblData = null; } if (lblDataPower != null) { lblDataPower.Dispose(); lblDataPower = null; } if (lblP0 != null) { lblP0.Dispose(); lblP0 = null; } if (PAvgValue != null) { PAvgValue.Dispose(); PAvgValue = null; } }