private void cmdByYear_Click(object sender, EventArgs e) { string filename = this.txtFilename.Text; if (!doesFileExist(filename)) { return; } clearForm(); // // Call over to F# code to analyze data and return a // chart to display: // this.Cursor = Cursors.WaitCursor; var chart = FSAnalysis.CrimesByYear(filename); this.Cursor = Cursors.Default; // // we have chart, display it: // this.graphPanel.Controls.Add(chart); this.graphPanel.Refresh(); }
private void cmdByYear_Click(object sender, EventArgs e) { string filename = this.txtFilename.Text; if (!doesFileExist(filename)) { return; } clearForm(); this.Cursor = Cursors.WaitCursor; var chart = FSAnalysis.CrimesByYear(filename); this.Cursor = Cursors.Default; this.graphPanel.Controls.Add(chart); this.graphPanel.Refresh(); }