void PlayerClosed(object sender, FormClosedEventArgs e) { this._player = null; }
private void Play() { if (GlobalSettings.Instance.UseInternalViewers) { if (this._player == null) { this._player = new PlayerForm(this); // render the video with our own video player this._player.FormClosed += PlayerClosed; this._player.Show(); } else this._player.Focus(); } else System.Diagnostics.Process.Start(this.Link, null); // render the video with default web-browser. if (this.State != State.Read) this.State = State.Read; }