public string IssueBirthError(FileInfo file)
{
if (applyToAll.Contains("CSL::BIRTH|"))
{
s_index = applyToAll.IndexOf("CSL::BIRTH|") + 11;
e_index = applyToAll.IndexOf("***", s_index);
return applyToAll.Substring(s_index, e_index - s_index);
}
ErrorLabel.Text = "CSL doesn't know which site this torrent came from";
InstructionalLabel.Text = "Please select a torrent site below";
FileNameLabel.Text = file.Name;
FilePathRichTextBox.Text = file.FullName;
BirthSelectionComboBox.Show();
this.Activate();
this.ShowDialog();
if (discard)
{
discard = false; //To ensure future Issues aren't discarded
return null;
}
else
{
if (ApplyToAllCheck.Checked)
applyToAll += "CSL::BIRTH|" + BirthSelectionComboBox.Text + "***";
return BirthSelectionComboBox.Text;
}
}