private void DisplayChart(object sender, EventArgs e) { ChartWindow chartForm = new ChartWindow(model.QueryExecutionTimes, queryModel.GetQueryNames()); this.Invoke((MethodInvoker)(() => chartForm.ShowDialog())); }
private void ShowToolStripMenuItem_Click(object sender, EventArgs e) { ChartWindow chartForm = new ChartWindow(model.QueryExecutionTimes, queryModel.GetQueryNames()); chartForm.ShowDialog(); }