Пример #1
0
 private void NextButton_Click(object sender, EventArgs e)
 {
     if (Validation.IsFilled(MyFirstName))
     {
         Hide();
         localSurname.Show();
     }
     else
     {
         MessageBox.Show("Please enter your first name.",
                         "Warning!");
     }
 }
Пример #2
0
 private void NextButton_Click(object sender, EventArgs e)
 {
     if (Validation.IsFilled(MyCity) && Validation.IsFilled(MyStreet) && Validation.IsFilled(MyStreetNumber) && Validation.IsFilled(MyPostcode))
     {
         Hide();
         localPhoneNumber.Show();
     }
     else
     {
         MessageBox.Show("Please enter your address.",
                         "Warning!");
     }
 }
Пример #3
0
 private void NextButton_Click(object sender, EventArgs e)
 {
     if (Validation.IsFilled(MyPhoneNumber))
     {
         MakeNewCompletion();
         Hide();
         localCompletion.Show();
     }
     else
     {
         MessageBox.Show("Please enter your phone number.",
                         "Warning!");
     }
 }