void ReleaseDesignerOutlets() { if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (MainButton != null) { MainButton.Dispose(); MainButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } }