コード例 #1
0
 private void initDb()
 {
     CategoryList categoryList = new CategoryList();
     categoryList.category = "News";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/mynewsfeed";
     _Category.Add(categoryList);
     categoryList.category = "Technology";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/mytechnology";
     _Category.Add(categoryList);
     categoryList.category = "Sport";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/mysport";
     _Category.Add(categoryList);
     categoryList.category = "Business";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/mybusiness";
     _Category.Add(categoryList);
     categoryList.category = "Health";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/myfitness";
     _Category.Add(categoryList);
     categoryList.category = "Lifestyle";
     categoryList.xmlUrl = "http://hostmyrss.com/feed/myculture";
     _Category.Add(categoryList);
 }
コード例 #2
0
 public FeedListCategory(CategoryList list)
 {
     Category = list.category;
     GetList = new RelayCommand(param => getList(list.xmlUrl));
 }