private void contextClick_Favorite(object sender, RoutedEventArgs e) { if (tweet == null) { return; } DalsaeInstence.Favorite(tweet.originalTweet.id, !tweet.originalTweet.favorited); }
private void AddFavorite() { ClientTweet tweet = selectTweet; if (tweet == null) { return; } if (tweet.originalTweet == null) { return; } DalsaeInstence.Favorite(tweet.originalTweet.id, !tweet.originalTweet.favorited); }