public ErrorCollection CreateX264File() { _errors = _validationService.Validate(); if (_errors.Count() == 0) { switch (_x264FileSettings.EncodeType) { case EnumEncodeType.CRF: this.CreateCRFX264File(); break; case EnumEncodeType.TwoPass: this.CreateTwoPassX264File(); break; default: _errors.Add(new Error() { Description = "Invalid x264 encode type" }); break; } } return(_errors); }
private void bgwCreateX264BatchFile_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { ErrorCollection errors = e.Result as ErrorCollection; if (errors.Count() == 0) { MessageBox.Show("The x264 batch file has been created!", "Success.", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(errors.GetErrorMessage(), "Errors Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error); } gbScreen.SetEnabled(true); }
private void bgwCreateAviSynthFiles_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { ErrorCollection errors = e.Result as ErrorCollection; if (errors.Count() > 0) { MessageBox.Show(errors.GetErrorMessage(), "Errors Occurred.", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show("AVS Scripts have been created!", "Success.", MessageBoxButtons.OK, MessageBoxIcon.Information); } gbScreen.SetEnabled(true); }
public ErrorCollection CreateX264File() { _errors = _validationService.Validate(); if (_errors.Count() == 0) { switch (_x264FileSettings.EncodeType) { case EnumEncodeType.CRF: this.CreateCRFX264File(); break; case EnumEncodeType.TwoPass: this.CreateTwoPassX264File(); break; default: _errors.Add(new Error() { Description = "Invalid x264 encode type" }); break; } } return _errors; }