void ReleaseDesignerOutlets() { if (BackwardButton != null) { BackwardButton.Dispose(); BackwardButton = null; } if (BackwardButtonCenterYConstraint != null) { BackwardButtonCenterYConstraint.Dispose(); BackwardButtonCenterYConstraint = null; } if (ContainerView != null) { ContainerView.Dispose(); ContainerView = null; } if (ForwardButton != null) { ForwardButton.Dispose(); ForwardButton = null; } if (HoppOverButton != null) { HoppOverButton.Dispose(); HoppOverButton = null; } if (PageControl != null) { PageControl.Dispose(); PageControl = null; } }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (BackGround != null) { BackGround.Dispose(); } if (ForwardButton != null) { ForwardButton.Dispose(); } if (BackButton != null) { BackButton.Dispose(); } if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }