Exemplo n.º 1
0
 private void OKButton_Click(object sender, EventArgs e)
 {
     if (!Rules.AreValid())
     {
         return;
     }
     this.Visible = false;             // hide so not called again by FormClosing event
     DialogResult = DialogResult.OK;
 }