CSL.ErrorWindow.IssueBitrateError C# (CSharp) Method

IssueBitrateError() public method

public IssueBitrateError ( FileInfo file ) : string
file FileInfo
return string
        public string IssueBitrateError(FileInfo file)
        {
            if (applyToAll.Contains("CSL::BITR|"))
            {
                  s_index = applyToAll.IndexOf("CSL::BITR|") + 10;
                  e_index = applyToAll.IndexOf("***", s_index);
                return applyToAll.Substring(s_index, e_index - s_index);
            }

            ErrorLabel.Text = "CSL was unable to parse out a bitrate";
            InstructionalLabel.Text = "Please select a bitrate below";

            BitrateSelectionComboBox.Show();
            FileNameLabel.Text = file.Name;
            FilePathRichTextBox.Text = file.FullName;

            this.Activate();
            this.ShowDialog();

            if (discard)
            {
                discard = false; //To ensure future Issues aren't discarded
                return null;
            }
            else
            {
                if (ApplyToAllCheck.Checked)
                    applyToAll += "CSL::BITR|" + BitrateSelectionComboBox.Text + "***";

                return BitrateSelectionComboBox.Text;
            }
        }