public void UpdateInfo(TwitterUser user) { UserTweets = user.StatusesCount; TweetCount.Text = UserTweets.ToString(); UserFollowing = user.FriendsCount; FollowingCount.Text = UserFollowing.ToString(); UserFollowers = user.FollowersCount; FollowersCount.Text = UserFollowers.ToString(); }
private void SendTweet_Click(object sender, RoutedEventArgs e) { if ((TweetContentTextBox.Text != "") || (mediaFile != null)) { getTweets.PublishTweet(TweetContentTextBox.Text, mediaFile); TweetContentTextBox.Clear(); ShowNotificationAnimation("Ваш твит отправлен"); UserTweets++; TweetCount.Text = UserTweets.ToString(); GreenMark.Source = null; mediaFile = null; } else { ShowNotificationAnimation("Введите текст для нового твита"); } }