Example #1
0
 /// <summary>
 /// Attach the video to the form and panel
 /// and show it to the world
 /// </summary>
 /// <param name="video">DirectX video</param>
 /// <param name="size">Size of the video</param>
 public void AttachVideoToForm(DirectXAllias::Video video, Size size)
 {
     FormForVideo               = new FormForVideo();
     FormForVideo.MinimumSize   = new Size(200, 200);
     FormForVideo.MaximumSize   = new Size(801, 601);
     FormForVideo.Video         = video;
     FormForVideo.ControlBox    = false;
     FormForVideo.Size          = new Size(800, 600);
     FormForVideo.StartPosition = FormStartPosition.CenterScreen;
     video.Owner = FormForVideo;
     FormForVideo.Show();
     FormForVideo.Activate();
     video.Size = new Size(800, 600);
 }
Example #2
0
 /// <summary>
 /// Attach the video to the form and panel 
 /// and show it to the world
 /// </summary>
 /// <param name="video">DirectX video</param>
 /// <param name="size">Size of the video</param>
 public void AttachVideoToForm(DirectXAllias::Video video, Size size)
 {
     FormForVideo = new FormForVideo();
     FormForVideo.MinimumSize = new Size(200, 200);
     FormForVideo.MaximumSize = new Size(801, 601);
     FormForVideo.Video = video;
     FormForVideo.ControlBox = false;
     FormForVideo.Size = new Size(800, 600);
     FormForVideo.StartPosition = FormStartPosition.CenterScreen;
     video.Owner = FormForVideo;
     FormForVideo.Show();
     FormForVideo.Activate();
     video.Size = new Size(800, 600);
 }