private bool IsScreenValidForWriteX264BatchFile()
{
if (string.IsNullOrEmpty(txtX264BatchFileOutputDirectory.Text))
{
MessageBox.Show("Please set the x264 batch file output directory", "x264 batch file output directory not set", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
if (_bindingListFiles == null || _bindingListFiles.Count() == 0)
{
MessageBox.Show("Please load AviSynth scripts", "AviSynth Scripts Not Loaded", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
if (string.IsNullOrEmpty(txtX264Template.Text))
{
MessageBox.Show("Please enter x264 settings", "Invalid x264 settings", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
if (chkSaveLogFileToDifferentDirectory.Checked && string.IsNullOrEmpty(txtX264LogFileSaveDirectory.Text))
{
MessageBox.Show("Please choose the x264 (.log) file save directory", "Invalid x264 settings", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
if (_batchGuyEAC3ToSettings.BluRayDiscs.NumberOfEpisodes() != _batchGuyEAC3ToSettings.X264Files.Count())
{
MessageBox.Show("The number of selected episodes on the Create eac3to Batch File does not match the number of AviSynth files.", "Invalid number of AviSynth files", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
return true;
}