/// /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { if (_cam != null) { _cam.Dispose(); _cam = null; } if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
/// <summary> /// Initializes a new instance of the <see cref="VideoControl"/> class. /// </summary> public VideoControl() { InitializeComponent(); _cam = new VideoCapture(panelVideo.Handle); }