private void btnSave_Click(object sender, EventArgs e)
 {
     if (Validator.IsPresent(txtCode) && Validator.IsPresent(txtDescription) && Validator.IsPresent(txtPrice) &&
         Validator.IsDecimal(txtPrice) && Validator.IsWithinRange(txtPrice, 0, Decimal.MaxValue))
     {
         product = new Product(txtCode.Text, txtDescription.Text, Convert.ToDecimal(txtPrice.Text));
         this.Close();
     }
 }//