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("Имеются незаполненные поля");