private void button1_Click(object sender, EventArgs e) { List <double> valuesX = LabToolz.ScanFromTextBox(XtextBox); List <double> valuesY = LabToolz.ScanFromTextBox(YtextBox); double[] X = valuesX.ToArray(); double[] Y = valuesY.ToArray(); Lab09 = new RegresiveAnalis(X, Y); PrintDataInForm(); Lab09.BuildChart(chart1); }