public ObservableCollection <Ingredient> GetStorage() { ObservableCollection <Ingredient> res = new ObservableCollection <Ingredient>(); Dictionary <lab1_restaurant.core.Ingredient, double> ins = _model.GetStorage(); ins.Keys.ToList().ForEach(a => res.Add(parseOldIngredient(a, ins))); return(res); }
public StoragePresenter(IStorageView view) { _view = view; dict.dict = _model.GetStorage(); _view.Dict = dict; }