PIbd-24 Antonova A.A. LabWork_1 #1

Open
Anitonchik wants to merge 7 commits from LabWork_1 into main
3 changed files with 3 additions and 6 deletions
Showing only changes of commit 8bded9e4bd - Show all commits

View File

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

View File

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

View File

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