public static void CreateVideoDisplay() { if (video_display == null) { video_display = new XOverlayVideoDisplay(); } }
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); }