public TweetTrackerViewModel(TwitterFeedViewModel feed)
        {
            Tweets = new BindableCollection<string>();

            feed.PropertyChanged += (_, args) => {
                if (args.PropertyName == "SelectedTweet") {
                    Tweets.Add(feed.SelectedTweet.Text);
                }
            };
        }
Пример #2
0
        public TweetTrackerViewModel(TwitterFeedViewModel feed)
        {
            Tweets = new BindableCollection <string>();

            feed.PropertyChanged += (_, args) => {
                if (args.PropertyName == "SelectedTweet")
                {
                    Tweets.Add(feed.SelectedTweet.Text);
                }
            };
        }