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