void ReleaseDesignerOutlets() { if (Image != null) { Image.Dispose(); Image = null; } if (HeaderText != null) { HeaderText.Dispose(); HeaderText = null; } if (FooterText != null) { FooterText.Dispose(); FooterText = null; } if (ButtonDetails != null) { ButtonDetails.Dispose(); ButtonDetails = null; } if (ButtonCancel != null) { ButtonCancel.Dispose(); ButtonCancel = null; } if (ButtonSend != null) { ButtonSend.Dispose(); ButtonSend = null; } if (Details != null) { Details.Dispose(); Details = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } }
public void Dispose() { HeaderText?.Dispose(); FooterText?.Dispose(); MenuItems?.Dispose(); }