public string IssueReleaseFormatError(FileInfo file)
{
if (applyToAll.Contains("CSL::RELEASEF|"))
{
s_index = applyToAll.IndexOf("CSL::RELEASEF|") + 14;
e_index = applyToAll.IndexOf("***", s_index);
return applyToAll.Substring(s_index, e_index - s_index);
}
ErrorLabel.Text = "CSL was unable to parse out a release format";
InstructionalLabel.Text = "Please select a release format below";
ReleaseSelectionComboBox.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::RELEASEF|" + ReleaseSelectionComboBox.Text + "***";
ApplyToAllCheck.Checked = false;
return ReleaseSelectionComboBox.Text;
}
}