private void AgentButton_Click(object sender, EventArgs e) { if (OpenFileDialogAgentResult.ShowDialog() == DialogResult.OK) { string path = OpenFileDialogAgentResult.FileName; AgentText.Text = path; AgentFilePath = path; } }
private void ResultButton_Click(object sender, EventArgs e) { if (OpenFileDialogAgentResult.ShowDialog() == DialogResult.OK) { string path = OpenFileDialogAgentResult.FileName; ResultText.Text = path; ResultsFilePath = path; var lines = File.ReadAllLines(path); resultsArray = lines; //var linesWithTheJobId = lines.Select(x => x.Contains("jobidddfsdfsd")).ToList(); } }