public ViewMealPlanPresenter(IRecipizerView view) { this.view = view; this.mealDays = new Dictionary <string, MealDay>(); this.recipes = new Dictionary <string, List <Recipe> >(); this.recipeFill = new List <Recipe>(); }
public CreateMealPlanPresenters(IRecipizerView _view) { this.view = _view; recipeDictionary = new Dictionary <string, Recipe>(); pickedRecipeDictionary = new Dictionary <string, Recipe>(); LoadRecipesFromStorage(); }
public ViewRecipePresenter(IRecipizerView _view, int _RecipeID) { this.view = _view; //Get the Recipe object CurrentRecipe = Constants.Conn.Get <Recipe>(_RecipeID); CurrentRecipe.SetIngredients(); }
public DeviceListPresenter(IRecipizerView _view) { this.view = _view; devices = new List <BluetoothDevice>(); DeviceDict = new Dictionary <string, BluetoothDevice>(); view.RequestPermission(); thisPhone = BluetoothAdapter.DefaultAdapter; StartDiscoveryProcess(); }
public ShareBluetoothPresenter(IRecipizerView _view, int id, string type) { this.view = _view; switch (type) { case "recipe": Recipe r = Constants.Conn.Get <Recipe>(id); r.SetIngredients(); if (!Bluetooth.ShareList.Contains(r)) { Bluetooth.ShareList.Add(r); } break; //TODO add more default: break; } }
public RecipesPresenter(IRecipizerView _view) { this.view = _view; RecipeList = new List <string>(); //LoadRecipesFromStorage(); }
public ShoppingListPresenter(IRecipizerView _view) { this.view = _view; shoppingListList = new List <string>(); LoadShoppingListFromDatabase(); }
public MainPresenter(IRecipizerView _view) { this.view = _view; Bluetooth.btHandler = new Bluetooth.BtHandler(); }
public MealPlanPresenter(IRecipizerView view) { this.view = view; mealPlanList = new List <string>(); LoadMealPlanFromStorage(); }
public CreateRecipePresenter(IRecipizerView _view) { this.view = _view; ingredientsList = new List <Ingredient>(); RecipeID = -1; }
public BluetoothReciever(IRecipizerView _view, DeviceListPresenter _presenter) { //this.dict1 = _dict; this.view = _view; this.presenter = _presenter; }
public ViewMealDayPresenter(IRecipizerView view) { this.view = view; recipes = new Dictionary <string, Recipe>(); }