improved check in order

This commit is contained in:
strwbrry1 2024-12-23 16:25:26 +04:00
parent 4f96a2e097
commit 39b6bc7ef5

View File

@ -42,7 +42,7 @@ namespace ProjectPublishing.Forms
{ {
try try
{ {
if (dataGridViewMaterials.RowCount < 1) if (dataGridViewMaterials.RowCount < 1 || CreateListFromDataGrid().Count == 0)
{ {
throw new Exception("Имеются незаполненные поля!"); throw new Exception("Имеются незаполненные поля!");
} }