diff --git a/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs b/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs index d432b87..72fcc61 100644 --- a/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs +++ b/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs @@ -9,7 +9,7 @@ namespace ShoeStore.Entities; public class ShoesReplenishment { public int Id { get; private set; } - public int FactoryId { get; private set; } + public int FactorysId { get; private set; } public DateTime DateReceipt { get; private set; } public IEnumerable ShoesShoesReplenishments { @@ -22,7 +22,7 @@ public class ShoesReplenishment return new ShoesReplenishment { Id = id, - FactoryId = factoryId, + FactorysId = factoryId, DateReceipt = DateTime.Now, ShoesShoesReplenishments = shoesShoesReplenishments }; diff --git a/ShoeStore/ShoeStore/Entities/Store.cs b/ShoeStore/ShoeStore/Entities/Store.cs index b3ec043..5bea84b 100644 --- a/ShoeStore/ShoeStore/Entities/Store.cs +++ b/ShoeStore/ShoeStore/Entities/Store.cs @@ -9,17 +9,15 @@ namespace ShoeStore.Entities; public class Store { public int Id { get; private set; } - public string StoreType { get; private set; } = string.Empty; public string StoreName { get; private set; } = string.Empty; public int Employees { get; private set; } public double Visitors { get; private set; } - public static Store CreateEntity(int id, string storeType, string + public static Store CreateEntity(int id, string storeName, int employees, double visitors) { return new Store { Id = id, - StoreType = storeType ?? string.Empty, StoreName = storeName ?? string.Empty, Employees = employees, Visitors = visitors diff --git a/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs b/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs index eed78b0..f529e81 100644 --- a/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs +++ b/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs @@ -57,6 +57,7 @@ ButtonDel.Size = new Size(85, 78); ButtonDel.TabIndex = 2; ButtonDel.UseVisualStyleBackColor = true; + ButtonDel.Click += ButtonDel_Click; // // ButtonUpd // @@ -67,6 +68,7 @@ ButtonUpd.Size = new Size(85, 77); ButtonUpd.TabIndex = 1; ButtonUpd.UseVisualStyleBackColor = true; + ButtonUpd.Click += ButtonUpd_Click; // // ButtonAdd // diff --git a/ShoeStore/ShoeStore/Forms/FormFactorys.resx b/ShoeStore/ShoeStore/Forms/FormFactorys.resx index 8b2ff64..af32865 100644 --- a/ShoeStore/ShoeStore/Forms/FormFactorys.resx +++ b/ShoeStore/ShoeStore/Forms/FormFactorys.resx @@ -1,7 +1,7 @@