Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void StepUpButton_Clicked(object sender, EventArgs e)
- {
- double value;
- for (int i = 0; i < 30; i++)
- {
- if (GetEntries(i).IsFocused)
- {
- if (String.IsNullOrEmpty(GetEntries(i).Text) || GetEntries(i).Text.Equals("-"))
- {
- value = 0.00;
- }
- else
- {
- value = Convert.ToDouble(GetEntries(i).Text);
- }
- for (int j = 0; j < 10; j++)
- {
- if (GetEntries(i) == GetVa1ToVb1Amp(j))
- {
- GetVa1ToVb1Amp(j).Text = controller.StepUpClicked(0, value).ToString("F2");
- }
- if (GetEntries(i) == GetIa1ToIb3Amp(j))
- {
- GetIa1ToIb3Amp(j).Text = controller.StepUpClicked(1, value).ToString("F3");
- }
- if (GetEntries(i) == GetVa1ToIb3Phase(j))
- {
- GetVa1ToIb3Phase(j).Text = controller.StepUpClicked(2, value).ToString("F2");
- }
- if (GetEntries(i) == GetVa1ToIb3Freq(j))
- {
- GetVa1ToIb3Freq(j).Text = controller.StepUpClicked(3, value).ToString("F3");
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment