TsRemux.TsRemux.OutputFileBrowseButton_Click C# (CSharp) Method

OutputFileBrowseButton_Click() private method

private OutputFileBrowseButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void OutputFileBrowseButton_Click(object sender, EventArgs e)
        {
            if (BluRayFormatRadioButton.Checked)
            {
                if (OutputFileTextBox.Text.LastIndexOf("\\") > 0)
                {
                    SelectOutputFolderDialog.SelectedPath = OutputFileTextBox.Text.Substring(0, OutputFileTextBox.Text.LastIndexOf("\\"));
                }
                DialogResult dr = SelectOutputFolderDialog.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    OutputFileTextBox.Text = SelectOutputFolderDialog.SelectedPath;
                    RemuxButton.Enabled = true;
                }
            }
            else
            {
                // hobBIT
                AppSettingsReader Config = new AppSettingsReader();
                //OpenOutputFileDialog.Filter = (string)Config.GetValue("FileFilter", typeof(string));
                OpenOutputFileDialog.FileName = InputFileTextBox.Text;
                OpenOutputFileDialog.ShowDialog();
            }
        }
TsRemux