private void lnkNews_Click(object sender, RoutedEventArgs e) { NewsMVVM news = (NewsMVVM)((Hyperlink)sender).Tag; news.markAsRead(); this.SelectedNews.SelectedNews = news.News; }
private void btnNo_Click(object sender, RoutedEventArgs e) { News news = (News)((Button)sender).Tag; this.SelectedNews.SelectedNews = null; NewsMVVM newsMVVM = this.AllNews.First(n => n.News == news); this.AllNews.Remove(newsMVVM); GameObject.GetInstance().NewsBox.removeNews(news); }
private void cbNews_Unchecked(object sender, RoutedEventArgs e) { NewsMVVM news = (NewsMVVM)((CheckBox)sender).Tag; this.SelectedNewsList.Remove(news); }