Agliullov D. A. Lab work 1 Base #2
@ -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))
|
||||
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
using AbstractShopListImplement.Implements;
|
||||
using ConfectioneryListImplement.Implements;
|
||||
using ConfectioneryBusinessLogic.BusinessLogics;
|
||||
using ConfectioneryContracts.BusinessLogicsContracts;
|
||||
using ConfectioneryContracts.StoragesContract;
|
||||
|
Loading…
Reference in New Issue
Block a user