From 8bded9e4bdd0881bc5dea419887ed8626e2ae0ca Mon Sep 17 00:00:00 2001 From: Anitonchik Date: Fri, 15 Nov 2024 18:10:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectCompanyFurniture/Forms/FormClient.cs | 4 +--- .../ProjectCompanyFurniture/Forms/FormInvoice.cs | 2 +- .../ProjectCompanyFurniture/Forms/FormProduct.cs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormClient.cs b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormClient.cs index 3bf819a..d131e60 100644 --- a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormClient.cs +++ b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormClient.cs @@ -55,9 +55,7 @@ namespace ProjectCompanyFurniture.Forms { try { - if (string.IsNullOrWhiteSpace(textBoxName.Text) - || checkBoxOptYes.Checked == false - || comboBoxClientType.SelectedIndex < 1) + if (string.IsNullOrWhiteSpace(textBoxName.Text) || comboBoxClientType.SelectedIndex < 1) { throw new Exception("Имеются незаполненные поля"); } diff --git a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormInvoice.cs b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormInvoice.cs index 41b6eab..9711f53 100644 --- a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormInvoice.cs +++ b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormInvoice.cs @@ -36,7 +36,7 @@ namespace ProjectCompanyFurniture.Forms { try { - if (dataGridViewProducts.RowCount < 1 || comboBoxClient.SelectedIndex < 0 || checkBoxPromYes.Checked == false) + if (dataGridViewProducts.RowCount < 1 || comboBoxClient.SelectedIndex < 0) { throw new Exception("Имеются незаполненные поля"); } diff --git a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormProduct.cs b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormProduct.cs index b9cf7d5..2823d4d 100644 --- a/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormProduct.cs +++ b/ProjectCompanyFurniture/ProjectCompanyFurniture/Forms/FormProduct.cs @@ -50,8 +50,7 @@ namespace ProjectCompanyFurniture.Forms { try { - if (string.IsNullOrWhiteSpace(textBoxName.Text) - || string.IsNullOrEmpty(textBoxCategory.Text) + if (string.IsNullOrWhiteSpace(textBoxName.Text) || string.IsNullOrEmpty(textBoxCategory.Text) || comboBoxManufacturer.SelectedIndex < 0) { throw new Exception("Имеются незаполненные поля");