void process_Output(object sender, ProcessOutputArgs e) { if (e.OutputLine == null) { return; } if (Output != null) { Output(this, e); } if (couldNotFindModeRegex.IsMatch(e.OutputLine) && !couldNotFindMode) { couldNotFindMode = true; if (Output != null) { Output(this, new ProcessOutputArgs( "Could not find mode, so switching to simplified arguments.")); } process.Cancel(); process.Dispose(); process = new F2TVideoConverterProcess(this.fileName, true); AddEventHandlersToProcess(process); process.Start(); } }
public void Start() { process = new F2TVideoConverterProcess(this.fileName, false); AddEventHandlersToProcess(process); process.Start(); }
public void Start() { process = new F2TVideoConverterProcess(this.fileName, false); AddEventHandlersToProcess(process); process.Start(); }
void process_Output(object sender, ProcessOutputArgs e) { if (e.OutputLine == null) return; if (Output != null) Output(this, e); if (couldNotFindModeRegex.IsMatch(e.OutputLine) && !couldNotFindMode) { couldNotFindMode = true; if (Output != null) Output(this, new ProcessOutputArgs( "Could not find mode, so switching to simplified arguments.")); process.Cancel(); process.Dispose(); process = new F2TVideoConverterProcess(this.fileName, true); AddEventHandlersToProcess(process); process.Start(); } }