/// <summary> /// Load an already generated results CSV and view it using the WebResultsViewer /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ViewResultsButton_Click(object sender, EventArgs e) { Console.WriteLine("Viewing Results"); DialogResult modelFileDialogResult = openFileDialog1.ShowDialog(); if (modelFileDialogResult == DialogResult.OK) { try { ResultsRepresentation resultFile = new ResultsRepresentation(openFileDialog1.FileName); WebResultsViewer resultsView = new WebResultsViewer(resultFile); resultsView.Show(); } catch (IOException ex) { MessageBox.Show("Could not open " + openFileDialog1.FileName + ". Error: " + ex.Message); } } }
/// <summary> /// Given a ResultsRepresentation, show them in a WebResultsView /// </summary> /// <param name="classifierData"></param> private void ShowClassifierResultsView(ResultsRepresentation classifierData) { WebResultsViewer resultsView = new WebResultsViewer(classifierData); resultsView.Show(); }