Пример #1
0
 private void contextClick_Favorite(object sender, RoutedEventArgs e)
 {
     if (tweet == null)
     {
         return;
     }
     DalsaeInstence.Favorite(tweet.originalTweet.id, !tweet.originalTweet.favorited);
 }
Пример #2
0
        private void AddFavorite()
        {
            ClientTweet tweet = selectTweet;

            if (tweet == null)
            {
                return;
            }
            if (tweet.originalTweet == null)
            {
                return;
            }

            DalsaeInstence.Favorite(tweet.originalTweet.id, !tweet.originalTweet.favorited);
        }