Ejemplo n.º 1
0
        public void SaveFoodItem()
        {
            // create the new food item
            _foodConsumed            = new FoodConsumed();
            _foodConsumed.dtConsumed = _dtConsumed;
            _foodConsumed.FoodItem   = _foodItem;

            // save the food item
            Debug.WriteLine("hey this is command in use! ");
            _shedItDB = new ShedItDBAccess();

            _shedItDB.InsertData(_foodConsumed);
        }
Ejemplo n.º 2
0
        public MyDietHistoryVM()
        {
            // create the DB
            DBAccess = new ShedItDBAccess();

            // get the raw data from DB
            GetDietHistory();

            //create the grouped list by date

            FindUniqueDates();

            GetGroupedDietHistory();
        }