コード例 #1
0
ファイル: MainVm.cs プロジェクト: abhijitv/Shreddit
        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);
        }
コード例 #2
0
ファイル: MyDietHistoryVM.cs プロジェクト: abhijitv/Shreddit
        public MyDietHistoryVM()
        {
            // create the DB
            DBAccess = new ShedItDBAccess();

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

            //create the grouped list by date

            FindUniqueDates();

            GetGroupedDietHistory();
        }