public override void Dispose() { SubscriptionManager.Instance.SetCredentialHandler(EMediaTypes.eMediaTypePodcastSeries, null); if (this._inputDialog != null) { this._inputDialog.Dispose(); this._inputDialog = null; } base.Dispose(); }
private void ShowDialog(object args) { if (!Application.IsApplicationThread || !(args is SubscriptonCredentialRequestArguments)) { return; } if (this._inputDialog != null) { this._inputDialog.Dispose(); this._inputDialog = null; } this._inputDialog = new PodcastSignIn((SubscriptonCredentialRequestArguments)args, new EventHandler(OnDialogSignIn), new EventHandler(OnDialogCanceled)); this._inputDialog.Show(); }