Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int GetVal()
- {
- A = double.Parse(textBox1.Text);
- B = double.Parse(textBox2.Text);
- if (A > B)
- {
- A = double.Parse(textBox2.Text);
- B = double.Parse(textBox1.Text);
- textBox1.Clear();
- textBox2.Clear();
- textBox1.AppendText(A.ToString());
- textBox2.AppendText(B.ToString());
- }
- EEE = float.Parse(textBox3.Text);
- num = (int)numericUpDown1.Value;
- int x = 0;
- for (int i = 0; i < dataGridView1.Columns.Count; i++)
- {
- if (dataGridView1.Rows[0].Cells[i].Value.ToString() != "")
- {
- var value = dataGridView1.CurrentRow.Cells[i].Value;
- a[i] = int.Parse(value.ToString());
- }
- else x = 1;
- }
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement