private void HandlesMenuItemWriteToMKVMergeBatFileClick()
{
DialogResult startProcessResult = MessageBox.Show("Create mkvmerge batch file?", "Start Process?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
_batchGuyEAC3ToSettings.X264Files = this.GetX264Files();
_batchGuyEAC3ToSettings.X264FileSettings = this.GetX264FileSettings();
this.SetEpisodeNames();
if (startProcessResult == System.Windows.Forms.DialogResult.Yes)
{
if (this.IsScreenValidForWriteX264BatchFile() && this.IsScreenValidForMkvMerge())
{
WarningCollection warnings = new EAC3ToBatchFileWriteWarningService(_batchGuyEAC3ToSettings.BluRayDiscs).GetWarnings();
this.MKVMergeWarnings(warnings);
if (warnings.Count() > 0)
{
string warning = string.Format("{0}{1}{2}Would you still like to continue?", warnings.GetWarningMessage(), Environment.NewLine, Environment.NewLine);
DialogResult warningResult = MessageBox.Show(warning, "Warnings Found", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);
if (warningResult == System.Windows.Forms.DialogResult.Yes)
{
this.WriteToMkvMergeBatchFile();
}
}
else
{
this.WriteToMkvMergeBatchFile();
}
}
}
}