void ReleaseDesignerOutlets() { if (AddImage != null) { AddImage.Dispose(); AddImage = null; } if (btnCancel != null) { btnCancel.Dispose(); btnCancel = null; } if (btnDone != null) { btnDone.Dispose(); btnDone = null; } if (CameraIcon != null) { CameraIcon.Dispose(); CameraIcon = null; } if (DateSelection != null) { DateSelection.Dispose(); DateSelection = null; } if (GoalSelection != null) { GoalSelection.Dispose(); GoalSelection = null; } if (Highlight != null) { Highlight.Dispose(); Highlight = null; } if (Hour != null) { Hour.Dispose(); Hour = null; } if (LogHoursContainer != null) { LogHoursContainer.Dispose(); LogHoursContainer = null; } if (OrganisationSelection != null) { OrganisationSelection.Dispose(); OrganisationSelection = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (UploadedImage != null) { UploadedImage.Dispose(); UploadedImage = null; } if (waiting != null) { waiting.Dispose(); waiting = null; } }