Beispiel #1
0
 public static void CreateVideoDisplay()
 {
     if (video_display == null)
     {
         video_display = new XOverlayVideoDisplay();
     }
 }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                video_event.ButtonPressEvent   -= OnButtonPress;
                video_event.ButtonReleaseEvent -= OnButtonRelease;
                video_event.MotionNotifyEvent  -= OnMouseMove;
                video_event.KeyPressEvent      -= OnKeyPress;

                video_display.IdleStateChanged -= OnVideoDisplayIdleStateChanged;

                video_display = null;
            }

            base.Dispose(disposing);
        }