public void setAllRead() { try { FeedsManager.FeedsManagerClient clt = new FeedsManagerClient(); clt.SetAllArticlesReadForUserAsync(CurrentUser.Name); clt.SetAllArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetAllArticlesReadForUserCompleted); } catch (Exception e) { Debug.WriteLine(e.Message); } }
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); } }
private void setArticleRead() { try { if (SelectedArticles == null) { return; } FeedsManager.FeedsManagerClient clt = new FeedsManagerClient(); clt.SetArticlesReadForUserAsync(SelectedArticles.Id, CurrentUser.Name); clt.SetArticlesReadForUserCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(clt_SetArticlesReadForUserCompleted); } catch (Exception e) { Debug.WriteLine(e.Message); } }
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); } }