void ReleaseDesignerOutlets() { if (MyPlayer != null) { MyPlayer.Dispose(); MyPlayer = null; } if (PauseButton != null) { PauseButton.Dispose(); PauseButton = null; } if (PlayButton != null) { PlayButton.Dispose(); PlayButton = null; } if (PlayerStatus != null) { PlayerStatus.Dispose(); PlayerStatus = null; } if (PlayListIdButton != null) { PlayListIdButton.Dispose(); PlayListIdButton = null; } if (SeekToButton != null) { SeekToButton.Dispose(); SeekToButton = null; } if (SeekToText != null) { SeekToText.Dispose(); SeekToText = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } if (TextPlayListId != null) { TextPlayListId.Dispose(); TextPlayListId = null; } }