CSL_Test__1.ErrorWindow.IssueBitformatError C# (CSharp) Метод

IssueBitformatError() публичный Метод

public IssueBitformatError ( FileInfo file ) : string
file FileInfo
Результат string
        public string IssueBitformatError(FileInfo file)
        {
            if (applyToAll.Contains("CSL::BITF|"))
            {
                  s_index = applyToAll.IndexOf("CSL::BITF|") + 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 bit format";
            InstructionalLabel.Text = "Please select a bit format below";

            BitformatSelectionComboBox.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::BITF|" + BitformatSelectionComboBox.Text + "***";

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