CSL_Test__1.ErrorWindow.IssueArtistError C# (CSharp) Method

IssueArtistError() public method

public IssueArtistError ( FileInfo file ) : string
file System.IO.FileInfo
return string
        public string IssueArtistError(FileInfo file)
        {
            if (applyToAll.Contains("CSL::ARTIST|"))
            {
                s_index = applyToAll.IndexOf("CSL::ARTIST|") + 12;
                e_index = applyToAll.IndexOf("***", s_index);
                return applyToAll.Substring(s_index, e_index - s_index);
            }

            InstructionalLabel.Text = "Please provide an artist below";
            ErrorLabel.Text = "CSL was unable to parse out an artist";

            SelectionTextBox.Show();
            OkButton.Enabled = false; //Will enable when key is pressed
            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::ARTIST|" + SelectionTextBox.Text + "***";

                ApplyToAllCheck.Checked = false;
                return SelectionTextBox.Text;
            }
        }