private void BluRayFormatRadioButton_CheckedChanged(object sender, EventArgs e)
{
if (BluRayFormatRadioButton.Checked)
{
ChapterLengthUpDown.Enabled = true;
if (inFile.FileType == TsFileType.M2TS)
cbxBypassAudioProcessing.Checked = true;
else
cbxBypassAudioProcessing.Checked = false;
if (!this.RemuxButton.Enabled)
{
if (this.OutputFileTextBox.Text.LastIndexOf(".") < this.OutputFileTextBox.Text.LastIndexOf("\\"))
this.RemuxButton.Enabled = true;
}
else
{
if (this.OutputFileTextBox.Text.LastIndexOf(".") >= this.OutputFileTextBox.Text.LastIndexOf("\\"))
this.RemuxButton.Enabled = false;
}
}
else
{
ChapterLengthUpDown.Enabled = false;
// don't allow folder for other options
if (this.RemuxButton.Enabled)
{
if (this.OutputFileTextBox.Text.LastIndexOf(".") < this.OutputFileTextBox.Text.LastIndexOf("\\"))
this.RemuxButton.Enabled = false;
}
else
{
if (this.OutputFileTextBox.Text.LastIndexOf(".") >= this.OutputFileTextBox.Text.LastIndexOf("\\"))
this.RemuxButton.Enabled = true;
}
}
}