示例#1
0
        //private void RefreshWishBookList()
        //{
        //    List<BookListItem> books = bookService.RefreshWishBookList(phoneAppServeice.State["username"].ToString());
        //    foreach (BookListItem item in books)
        //    {
        //        Debug.WriteLine("[DEBUG]Item Status is : " + item.Status);
        //    }
        //    WishBookListItems.ItemsSource = books;
        //}

        //private void RefreshFinishBookList()
        //{
        //    List<BookListItem> books = bookService.RefreshFinishBookList(phoneAppServeice.State["username"].ToString());
        //    foreach (BookListItem item in books)
        //    {
        //        Debug.WriteLine("[DEBUG]Item Status is : " + item.Status);
        //    }
        //    FinishBookListItems.ItemsSource = books;
        //}

        private void RefreshReadingPlanItems()
        {
            List <ReadingPlan> plans = bookService.RefreshReadingPlan(phoneAppServeice.State["username"].ToString());

            foreach (var item in plans)
            {
                Debug.WriteLine(item.Title + "\n" + item.DatePicker + "\n" + item.Priority + "\n");
            }

            ReadingPlanItems.ItemsSource = plans;
        }