private void FormEditColumnNumeric_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (this.DialogResult == DialogResult.OK)
         {
             if (txtValue.Text.Length > 0 && !_props.IsValidValue(txtValue.Value))
             {
                 MessageBox.Show("Specified value does not match the allowed range", MainForm.AppName, MessageBoxButtons.OK, MessageBoxIcon.Information);
                 e.Cancel = true;
             }
             else
             {
                 if (!_props.IsDecimal && txtValue.DecimalPlaces > 0)
                 {
                     _props.IsDecimal     = true;
                     _props.DecimalPlaces = txtValue.DecimalPlaces;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         MainForm.ShowExceptionMessage(ex);
     }
 }