Inheritance: INotifyPropertyChanged
示例#1
0
        private void lnkNews_Click(object sender, RoutedEventArgs e)
        {
            NewsMVVM news = (NewsMVVM)((Hyperlink)sender).Tag;

            news.markAsRead();

            this.SelectedNews.SelectedNews = news.News;
        }
示例#2
0
        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);
        }
示例#3
0
        private void cbNews_Unchecked(object sender, RoutedEventArgs e)
        {
            NewsMVVM news = (NewsMVVM)((CheckBox)sender).Tag;

            this.SelectedNewsList.Remove(news);
        }