Esempio n. 1
0
 void PlayerClosed(object sender, FormClosedEventArgs e)
 {
     this._player = null;
 }
Esempio n. 2
0
 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;
 }