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);
        }
Beispiel #2
0
 public StoragePresenter(IStorageView view)
 {
     _view      = view;
     dict.dict  = _model.GetStorage();
     _view.Dict = dict;
 }