Guest User

Untitled

a guest
Jan 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. private void StepUpButton_Clicked(object sender, EventArgs e)
  2. {
  3. double value;
  4. for (int i = 0; i < 30; i++)
  5. {
  6. if (GetEntries(i).IsFocused)
  7. {
  8. if (String.IsNullOrEmpty(GetEntries(i).Text) || GetEntries(i).Text.Equals("-"))
  9. {
  10. value = 0.00;
  11. }
  12. else
  13. {
  14. value = Convert.ToDouble(GetEntries(i).Text);
  15. }
  16. for (int j = 0; j < 10; j++)
  17. {
  18. if (GetEntries(i) == GetVa1ToVb1Amp(j))
  19. {
  20. GetVa1ToVb1Amp(j).Text = controller.StepUpClicked(0, value).ToString("F2");
  21. }
  22. if (GetEntries(i) == GetIa1ToIb3Amp(j))
  23. {
  24. GetIa1ToIb3Amp(j).Text = controller.StepUpClicked(1, value).ToString("F3");
  25. }
  26. if (GetEntries(i) == GetVa1ToIb3Phase(j))
  27. {
  28. GetVa1ToIb3Phase(j).Text = controller.StepUpClicked(2, value).ToString("F2");
  29. }
  30. if (GetEntries(i) == GetVa1ToIb3Freq(j))
  31. {
  32. GetVa1ToIb3Freq(j).Text = controller.StepUpClicked(3, value).ToString("F3");
  33. }
  34. }
  35. }
  36. }
  37. }
Add Comment
Please, Sign In to add comment