Exemplo n.º 1
0
 public BlogItemByIdModelProvider BlogItemByIdModelProvider(BlogItem b)
 {
     BlogItemByIdModelProvider provider = null;
     if (!_blogItemByIdModelProvider.ContainsKey(b))
     {
         provider = new BlogItemByIdModelProvider(b);
         provider.LoadData();
         _blogItemByIdModelProvider.Add(b, provider);
     }
     else
     {
         provider = _blogItemByIdModelProvider[b];
     }
     return provider;
 }
 public BlogItemByIdModelProvider(BlogItem b)
 {
     this.b = b;
     this.BlogItems = new ObservableCollection<BlogItem>();
 }