Compare commits
No commits in common. "31e8b80d9dab4f83d5fbbbfa82c4c83a6ebef45a" and "2551da28b4d750bead3e7c01a15135d596d3f4ac" have entirely different histories.
31e8b80d9d
...
2551da28b4
@ -51,7 +51,7 @@ public class Invoice
|
|||||||
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
||||||
DiscountPercentage = discountPercentage,
|
DiscountPercentage = discountPercentage,
|
||||||
SellingPrice = sellingPrice,
|
SellingPrice = sellingPrice,
|
||||||
Date = DateTime.Now,
|
DateInvoice = DateTime.Now,
|
||||||
Products = products
|
Products = products
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,8 @@ namespace ProjectCompanyFurniture.Forms
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(textBoxName.Text) || string.IsNullOrEmpty(textBoxCategory.Text)
|
if (string.IsNullOrWhiteSpace(textBoxName.Text)
|
||||||
|
|| string.IsNullOrEmpty(textBoxCategory.Text)
|
||||||
|| comboBoxManufacturer.SelectedIndex < 0)
|
|| comboBoxManufacturer.SelectedIndex < 0)
|
||||||
{
|
{
|
||||||
throw new Exception("Имеются незаполненные поля");
|
throw new Exception("Имеются незаполненные поля");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user