TsRemux.TsRemux.BluRayFormatRadioButton_CheckedChanged C# (CSharp) Method

BluRayFormatRadioButton_CheckedChanged() private method

private BluRayFormatRadioButton_CheckedChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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;
                }
            }
        }
TsRemux