Exemplo n.º 1
0
 private void ValidationID2(object sender, CancelEventArgs e)
 {
     if (string.IsNullOrWhiteSpace(ID2Input.Text))
     {
         e.Cancel = true;
         WebTargetInput.Focus();
         errorMsgID2.SetError(ID2Input, "Parameter should not be left blank!");
     }
     else
     {
         e.Cancel = false;
         errorMsgID2.SetError(ID2Input, "");
     }
 }
Exemplo n.º 2
0
 private void ValidationLooping(object sender, CancelEventArgs e)
 {
     if (string.IsNullOrWhiteSpace(LoopingInput.Text))
     {
         e.Cancel = true;
         WebTargetInput.Focus();
         errorLooping.SetError(LoopingInput, "Looping should not be left blank!");
     }
     else
     {
         e.Cancel = false;
         errorLooping.SetError(LoopingInput, "");
     }
 }
Exemplo n.º 3
0
 private void ValidationWebTargetInput(object sender, CancelEventArgs e)
 {
     if (string.IsNullOrWhiteSpace(WebTargetInput.Text))
     {
         e.Cancel = true;
         WebTargetInput.Focus();
         errorProvider1.SetError(WebTargetInput, "Web target should not be left blank!");
     }
     else
     {
         e.Cancel = false;
         errorProvider1.SetError(WebTargetInput, "");
     }
 }