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();
 }
Esempio n. 3
0
        public ViewRecipePresenter(IRecipizerView _view, int _RecipeID)
        {
            this.view = _view;

            //Get the Recipe object
            CurrentRecipe = Constants.Conn.Get <Recipe>(_RecipeID);
            CurrentRecipe.SetIngredients();
        }
Esempio n. 4
0
        public DeviceListPresenter(IRecipizerView _view)
        {
            this.view  = _view;
            devices    = new List <BluetoothDevice>();
            DeviceDict = new Dictionary <string, BluetoothDevice>();


            view.RequestPermission();

            thisPhone = BluetoothAdapter.DefaultAdapter;

            StartDiscoveryProcess();
        }
Esempio n. 5
0
        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;
            }
        }
Esempio n. 6
0
 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();
 }
Esempio n. 10
0
 public CreateRecipePresenter(IRecipizerView _view)
 {
     this.view       = _view;
     ingredientsList = new List <Ingredient>();
     RecipeID        = -1;
 }
Esempio n. 11
0
 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>();
 }