From fffe8366073de3ef93070efea0390860873261d0 Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Mon, 3 Apr 2023 18:03:56 +0400 Subject: [PATCH] =?UTF-8?q?=D1=8F=20=D0=B3=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/ShopBindingModel.cs | 7 +++---- .../SoftwareInstallationView/FormAddPackageInShop.cs | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/SoftwareInstallation/SoftwareInstallationContracts/BindingModels/ShopBindingModel.cs b/SoftwareInstallation/SoftwareInstallationContracts/BindingModels/ShopBindingModel.cs index 1a6e477..edece23 100644 --- a/SoftwareInstallation/SoftwareInstallationContracts/BindingModels/ShopBindingModel.cs +++ b/SoftwareInstallation/SoftwareInstallationContracts/BindingModels/ShopBindingModel.cs @@ -9,8 +9,6 @@ namespace SoftwareInstallationContracts.BindingModels public string Address { get; set; } = string.Empty; - public int MaxCountPackages { get; set; } - public DateTime DateOpening { get; set; } = DateTime.Now; public Dictionary Packages @@ -20,5 +18,6 @@ namespace SoftwareInstallationContracts.BindingModels } = new(); public int Id { get; set; } - } -} \ No newline at end of file + public int MaxCountPackages { get; set; } + } +} diff --git a/SoftwareInstallation/SoftwareInstallationView/FormAddPackageInShop.cs b/SoftwareInstallation/SoftwareInstallationView/FormAddPackageInShop.cs index 5d990df..905a6a3 100644 --- a/SoftwareInstallation/SoftwareInstallationView/FormAddPackageInShop.cs +++ b/SoftwareInstallation/SoftwareInstallationView/FormAddPackageInShop.cs @@ -41,10 +41,10 @@ namespace SoftwareInstallationView _listPackages = packageLogic.ReadList(null); if (_listPackages != null) { - comboBoxPackage.DisplayMember = "PackageName"; - comboBoxPackage.ValueMember= "Id"; - comboBoxPackage.DataSource = _listPackages; - comboBoxPackage.SelectedItem = null; + textBoxPackage.DisplayMember = "PackageName"; + textBoxPackage.ValueMember= "Id"; + textBoxPackage.DataSource = _listPackages; + textBoxPackage.SelectedItem = null; } }