示例#1
0
 void videoForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (videoForm != null)
     {
         videoForm.Dispose();
         videoForm = null;
     }
 }
示例#2
0
 void showVideo(VideoEventArgs e)
 {
     if (videoForm == null)
     {
         videoForm             = new VideoForm(airplay, e.SessionId);
         videoForm.FormClosed += videoForm_FormClosed;
         videoForm.Show();
     }
     videoForm.LoadVideo(e);
 }