Agliullov D. A. Lab work 1 Base #2

Closed
d.agliullov wants to merge 14 commits from Lab1_Base into main
3 changed files with 4 additions and 7 deletions
Showing only changes of commit c03c0457b0 - Show all commits

View File

@ -2,10 +2,9 @@
using ConfectioneryContracts.SearchModels;
using ConfectioneryContracts.StoragesContract;
using ConfectioneryContracts.ViewModels;
using ConfectioneryListImplement;
using ConfectioneryListImplement.Models;
namespace AbstractShopListImplement.Implements
namespace ConfectioneryListImplement.Implements
{
public class ComponentStorage : IComponentStorage
{
@ -23,8 +22,7 @@ namespace AbstractShopListImplement.Implements
}
return result;
}
public List<ComponentViewModel> GetFilteredList(ComponentSearchModel
model)
public List<ComponentViewModel> GetFilteredList(ComponentSearchModel model)
{
var result = new List<ComponentViewModel>();
if (string.IsNullOrEmpty(model.ComponentName))

View File

@ -105,8 +105,7 @@ namespace ConfectioneryView
var service = Program.ServiceProvider?.GetService(typeof(FormPastryComponent));
if (service is FormPastryComponent form)
{
int id =
Convert.ToInt32(dataGridView.SelectedRows[0].Cells[0].Value);
int id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells[0].Value);
form.Id = id;
form.Count = _pastryComponents[id].Item2;
if (form.ShowDialog() == DialogResult.OK)

View File

@ -1,4 +1,4 @@
using AbstractShopListImplement.Implements;
using ConfectioneryListImplement.Implements;
using ConfectioneryBusinessLogic.BusinessLogics;
using ConfectioneryContracts.BusinessLogicsContracts;
using ConfectioneryContracts.StoragesContract;