Исправления
This commit is contained in:
parent
709214b6cd
commit
adafe6d8ea
@ -124,6 +124,7 @@ namespace FurnitureAssemFileImplement.Implements
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
count -= shop.Furnitures[furniture.Id].Item2;
|
||||||
shop.Furnitures[furniture.Id] = (shop.Furnitures[furniture.Id].Item1, 0);
|
shop.Furnitures[furniture.Id] = (shop.Furnitures[furniture.Id].Item1, 0);
|
||||||
shop.Update(new ShopBindingModel
|
shop.Update(new ShopBindingModel
|
||||||
{
|
{
|
||||||
@ -134,7 +135,7 @@ namespace FurnitureAssemFileImplement.Implements
|
|||||||
Address = shop.Address,
|
Address = shop.Address,
|
||||||
DateOpening = shop.DateOpening,
|
DateOpening = shop.DateOpening,
|
||||||
});
|
});
|
||||||
count -= shop.Furnitures[furniture.Id].Item2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
source.SaveShops();
|
source.SaveShops();
|
||||||
|
@ -106,6 +106,7 @@ namespace FurnitureAssembly
|
|||||||
{
|
{
|
||||||
MessageBox.Show("Не удалось продать изделие " + FurnitureModel.FurnitureName, "Ошибка",
|
MessageBox.Show("Не удалось продать изделие " + FurnitureModel.FurnitureName, "Ошибка",
|
||||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
MessageBox.Show("Продажа прошла успешно", "Сообщение",
|
MessageBox.Show("Продажа прошла успешно", "Сообщение",
|
||||||
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
@ -154,9 +154,9 @@
|
|||||||
this.labelMaxCount.AutoSize = true;
|
this.labelMaxCount.AutoSize = true;
|
||||||
this.labelMaxCount.Location = new System.Drawing.Point(35, 141);
|
this.labelMaxCount.Location = new System.Drawing.Point(35, 141);
|
||||||
this.labelMaxCount.Name = "labelMaxCount";
|
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.TabIndex = 10;
|
||||||
this.labelMaxCount.Text = "Адрес";
|
this.labelMaxCount.Text = "Вместимость";
|
||||||
//
|
//
|
||||||
// FormShop
|
// FormShop
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user