From 0012615e11f7798e3de84f9b88000ed2df379a2a Mon Sep 17 00:00:00 2001 From: kotcheshir73 Date: Sat, 3 Apr 2021 11:29:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D0=B2=D0=B5=D1=80=D1=82?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B2=20decimal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/DesktopTools/BaseControls/BaseControlDecimal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs b/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs index b052ccb..02f9fc7 100644 --- a/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs +++ b/DepartmentPortal/Common/DesktopTools/BaseControls/BaseControlDecimal.cs @@ -77,7 +77,7 @@ namespace DesktopTools.BaseControls public bool CheckValueForControl() => true; - public object GetValueFromControl() => !_mustFilling && checkBoxNullable.Checked ? null : Convert.ToDouble(numericUpDown.Value); + public object GetValueFromControl() => !_mustFilling && checkBoxNullable.Checked ? null : Convert.ToDecimal(numericUpDown.Value); public string GetPropertyName() => _propertyName; }