protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (ToSelectButton != null) { if (!ToSelectButton.IsDisposed) { ToSelectButton.Dispose(); } ToSelectButton = null; } if (ExitButton != null) { if (!ExitButton.IsDisposed) { ExitButton.Dispose(); } ExitButton = null; } } }
void ReleaseDesignerOutlets() { if (AngryButton != null) { AngryButton.Dispose(); AngryButton = null; } if (BackgroundImageView != null) { BackgroundImageView.Dispose(); BackgroundImageView = null; } if (CoolButton != null) { CoolButton.Dispose(); CoolButton = null; } if (ExitButton != null) { ExitButton.Dispose(); ExitButton = null; } if (HappyButton != null) { HappyButton.Dispose(); HappyButton = null; } if (LoveButton != null) { LoveButton.Dispose(); LoveButton = null; } if (SadButton != null) { SadButton.Dispose(); SadButton = null; } }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (CurrentItemName != null) { CurrentItemName.Dispose(); CurrentItemName = null; } if (DisplayButton != null) { DisplayButton.Dispose(); DisplayButton = null; } if (ExitButton != null) { ExitButton.Dispose(); ExitButton = null; } if (HiddenNameButton != null) { HiddenNameButton.Dispose(); HiddenNameButton = null; } if (HomeButton != null) { HomeButton.Dispose(); HomeButton = null; } if (NextButton != null) { NextButton.Dispose(); NextButton = null; } if (NextPageButton != null) { NextPageButton.Dispose(); NextPageButton = null; } if (PlayButton != null) { PlayButton.Dispose(); PlayButton = null; } if (PrevButton != null) { PrevButton.Dispose(); PrevButton = null; } if (PrevPageButton != null) { PrevPageButton.Dispose(); PrevPageButton = null; } if (SelectButton != null) { SelectButton.Dispose(); SelectButton = null; } if (ShutdownButton != null) { ShutdownButton.Dispose(); ShutdownButton = null; } if (WheeImage != null) { WheeImage.Dispose(); WheeImage = null; } }