private void buttonGetLines_Click(object sender, EventArgs e) { int a = Convert.ToInt32(textBoxLinesNumber.Text); Line[] arr = LineUtil.Generate(a); OutputLines(arr, dataGridViewLines); }
private void buttonRun_Click(object sender, EventArgs e) { Line[] arr; arr = InputLines(dataGridViewLines); bool r = LineUtil.ParallelCheck(arr); textBoxResult.Text = Convert.ToString(r); }