Exemplo n.º 1
0
 private void RenderForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     FormClosing -= RenderForm_FormClosing;
     if (player != null)
     {
         player.Dispose();
     }
 }
Exemplo n.º 2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     player.Dispose();
 }
Exemplo n.º 3
0
 private void RenderWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Closing -= RenderWindow_Closing;
     player?.Dispose();
 }
Exemplo n.º 4
0
 private void WindowOnClosing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     player.Dispose();
 }
Exemplo n.º 5
0
 private void VideoPlayerForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _player?.Dispose();
 }