void ReleaseDesignerOutlets() { if (BlockDownloadView != null) { BlockDownloadView.Dispose(); BlockDownloadView = null; } if (BlockGenerateView != null) { BlockGenerateView.Dispose(); BlockGenerateView = null; } if (CostInput != null) { CostInput.Dispose(); CostInput = null; } if (DownloadQRBtn != null) { DownloadQRBtn.Dispose(); DownloadQRBtn = null; } if (ImageResult != null) { ImageResult.Dispose(); ImageResult = null; } if (QrViewName != null) { QrViewName.Dispose(); QrViewName = null; } }