private void buttonStartGode_Click(object sender, EventArgs e) { DataToMach3 dt = new DataToMach3(); textBoxGCode.Text = dt.ConvertToGCode(dataGridView1, Double.Parse(textBoxBoardOffsetX.Text), Double.Parse(textBoxBoardOffsetY.Text), textBoxRunSpeed.Text); }