You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
833 B
33 lines
833 B
using Model;
|
|
using Model.Managers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ConsoleApp.Menu
|
|
{
|
|
internal class SearchUserRecipes : SearcherRecipe
|
|
{
|
|
public SearchUserRecipes(MasterManager masterManager) : base(masterManager)
|
|
{
|
|
}
|
|
|
|
public override void Update()
|
|
{
|
|
_recipeCollectionOnSearch = _masterMgr.GetCurrentUserRecipes();
|
|
_allSelectors = ConvertRecipeCollectionInSelectors();
|
|
|
|
_selectList = SearchInSelection();
|
|
|
|
if (_selectList.Count == 0)
|
|
{
|
|
CurrentSelected = default;
|
|
return;
|
|
}
|
|
CurrentSelected = _selectList[CurrentLine].Item;
|
|
}
|
|
}
|
|
}
|