This commit is contained in:
devil_1nc 2023-05-22 21:24:53 +04:00
parent 4326593e9c
commit 438f3f24af
4 changed files with 2 additions and 11 deletions

View File

@ -1,9 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -13,6 +13,5 @@ namespace AbstractSoftwareInstallationContracts.BindingModels
public string PackageName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (ISoftwareModel, int)> PackageSoftware{get;set;} = new();
public object PackageSoftwares { get; set; }
}
}

View File

@ -201,7 +201,7 @@
this.groupBoxSoftware.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
this.Load += new System.EventHandler(this.FormPackage_Load);
}
#endregion

View File

@ -189,6 +189,7 @@ namespace SoftwareInstallationView
Id = _id ?? 0,
PackageName = textBoxName.Text,
Price = Convert.ToDouble(textBoxPrice.Text),
PackageSoftware = _packageSoftwares
};
var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model);