public CriticalErrorEventArgs(string controlName, VidGrab.TOnLogEventArgs log) { this.Log = log; this.ControlName = controlName; if (log.logType == VidGrab.TLogType.e_failed_to_start_preview || log.logType == VidGrab.TLogType.e_failed_to_start_recording) { log.infoMsg = "No se pudo iniciar la grabación. Por favor verifique la configuración"; } }
private void vgPreview_OnLog(object sender, VidGrab.TOnLogEventArgs e) { txtLogPreview.Text += string.Format("{0} - {1}{2}", e.severity, e.infoMsg, System.Environment.NewLine); }
private void videoGrabber_OnLog(object sender, VidGrab.TOnLogEventArgs e) { txtLog.Text += string.Format("{0}\n", e.infoMsg); }