Beispiel #1
0
 private void OK_Click(object sender, EventArgs e)
 {
     if (IsAllTextBoxesAreNotEmpty())
     {
         if (IsNotError())
         {
             NewLevelDesigner levelDesigner = new NewLevelDesigner(int.Parse(numberOfLines.Text), int.Parse(numberOfColumns.Text), this);
             this.Visible = false;
             levelDesigner.Show();
         }
     }
     errorProvider.SetError(OK, errorMsg);
 }
Beispiel #2
0
 private void OK_Click(object sender, EventArgs e)
 {
     if (IsAllTextBoxesAreNotEmpty())
     {
         if (IsNotError())
         {
             NewLevelDesigner levelDesigner = new NewLevelDesigner(int.Parse(numberOfLines.Text), int.Parse(numberOfColumns.Text), this);
             this.Visible = false;
             levelDesigner.Show();
         }
     }
     errorProvider.SetError(OK, errorMsg);
 }