private void toolStripButton3_Click(object sender, EventArgs e) { Form2 window = new Form2(); X = window.GetList(); int NumClass = -1; if (!String.IsNullOrEmpty(classcountToolStripMenuItem.Text)) { NumClass = Convert.ToInt32(classcountToolStripMenuItem.Text); } X.Sort(); logChartsDraw(chart1, chart2, NumClass, X); GridWrite(dataGridView1, dataGridView2, NumClass, X); }