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