public static buildParseTextBox ( ) : string | ||
Результат | string |
public static string buildParseTextBox()
{
if (LogResults.Length > 0)
{
LogResults.Remove(0, LogResults.Length);
}
foreach (ArrayList ScriptEntry in Results)
{
LogResults.Append("Script: " + ScriptEntry[0]);
LogResults.Append(Environment.NewLine);
LogResults.Append(".LST Line: " + ScriptEntry[1]);
LogResults.Append(Environment.NewLine);
LogResults.Append(Environment.NewLine);
}
return LogResults.ToString();
}
private void parseButton_Click(object sender, EventArgs e) { if (ScriptLogResults.Parse()) { parseResultsTextBox.Text = ""; parseResultsTextBox.Text = ScriptLogResults.buildParseTextBox(); if (parseResultsTextBox.Text.Length > 8) { this.saveButton.Enabled = true; } } }