PIbd-24 Antonova A.A. LabWork_4 #4

Closed
Anitonchik wants to merge 11 commits from LabWork_4 into LabWork_3
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 31e8b80d9d - Show all commits

View File

@ -51,7 +51,7 @@ public class Invoice
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
DiscountPercentage = discountPercentage,
SellingPrice = sellingPrice,
DateInvoice = DateTime.Now,
Date = DateTime.Now,
Products = products
};
}

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