Исправления

This commit is contained in:
prodigygirl 2023-03-12 16:01:12 +04:00
parent 709214b6cd
commit adafe6d8ea
3 changed files with 5 additions and 3 deletions

View File

@ -124,6 +124,7 @@ namespace FurnitureAssemFileImplement.Implements
});
break;
}
count -= shop.Furnitures[furniture.Id].Item2;
shop.Furnitures[furniture.Id] = (shop.Furnitures[furniture.Id].Item1, 0);
shop.Update(new ShopBindingModel
{
@ -134,7 +135,7 @@ namespace FurnitureAssemFileImplement.Implements
Address = shop.Address,
DateOpening = shop.DateOpening,
});
count -= shop.Furnitures[furniture.Id].Item2;
}
}
source.SaveShops();

View File

@ -106,6 +106,7 @@ namespace FurnitureAssembly
{
MessageBox.Show("Не удалось продать изделие " + FurnitureModel.FurnitureName, "Ошибка",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
MessageBox.Show("Продажа прошла успешно", "Сообщение",
MessageBoxButtons.OK, MessageBoxIcon.Information);

View File

@ -154,9 +154,9 @@
this.labelMaxCount.AutoSize = true;
this.labelMaxCount.Location = new System.Drawing.Point(35, 141);
this.labelMaxCount.Name = "labelMaxCount";
this.labelMaxCount.Size = new System.Drawing.Size(40, 15);
this.labelMaxCount.Size = new System.Drawing.Size(80, 15);
this.labelMaxCount.TabIndex = 10;
this.labelMaxCount.Text = "Адрес";
this.labelMaxCount.Text = "Вместимость";
//
// FormShop
//