CSL.ErrorWindow.IssueIllegalCharactersError C# (CSharp) Method

IssueIllegalCharactersError() public method

public IssueIllegalCharactersError ( FileInfo file, string destPath ) : string
file FileInfo
destPath string
return string
        public string IssueIllegalCharactersError(FileInfo file, string destPath)
        {
            ErrorLabel.Text = "There's illegal characters in destination path: \"" + destPath + "\"";
            InstructionalLabel.Text = "Please correct the path below";

            SelectionTextBox.Show();
            SelectionTextBox.Text = destPath;
            OkButton.Enabled = false; //Will enable when key is pressed
            FileNameLabel.Text = file.Name;
            FilePathRichTextBox.Text = file.FullName;

            this.Activate();
            this.ShowDialog();

            return SelectionTextBox.Text;
        }