Исправления
This commit is contained in:
parent
709214b6cd
commit
adafe6d8ea
@ -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();
|
||||
|
@ -106,6 +106,7 @@ namespace FurnitureAssembly
|
||||
{
|
||||
MessageBox.Show("Не удалось продать изделие " + FurnitureModel.FurnitureName, "Ошибка",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
MessageBox.Show("Продажа прошла успешно", "Сообщение",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
|
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user