Exemplo n.º 1
0
 private void setArticleRead()
 {
     try
     {
         if (Archives.Contains(SelectedArticles))
         {
             return;
         }
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetArticlesReadForUserAsync(SelectedArticles.Id, WebContext.Current.Authentication.User.Identity.Name);
         clt.SetArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetArticlesReadForUserCompleted);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
Exemplo n.º 2
0
 private void setArticleRead()
 {
     try
     {
         if (Archives.Contains(SelectedArticles))
         {
             return;
         }
         FeedsManager.FeedsManagerClient clt = new FeedsManagerClient();
         clt.SetArticlesReadForUser(SelectedArticles.Id, CurrentUser.Name);
         setArticles();
         updateProperties();
         SelectedArticles = null;
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }