Advertisement
Guest User

That Shit

a guest
Jul 1st, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int GetVal()
  2.         {
  3.             A = double.Parse(textBox1.Text);
  4.             B = double.Parse(textBox2.Text);
  5.             if (A > B)
  6.             {
  7.                 A = double.Parse(textBox2.Text);
  8.                 B = double.Parse(textBox1.Text);
  9.                 textBox1.Clear();
  10.                 textBox2.Clear();
  11.                 textBox1.AppendText(A.ToString());
  12.                 textBox2.AppendText(B.ToString());
  13.             }
  14.             EEE = float.Parse(textBox3.Text);
  15.             num = (int)numericUpDown1.Value;
  16.             int x = 0;
  17.             for (int i = 0; i < dataGridView1.Columns.Count; i++)
  18.             {
  19.                 if (dataGridView1.Rows[0].Cells[i].Value.ToString() != "")
  20.                 {
  21.                     var value = dataGridView1.CurrentRow.Cells[i].Value;
  22.                     a[i] = int.Parse(value.ToString());
  23.                 }
  24.                 else x = 1;
  25.             }
  26.             return x;
  27.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement