private void LoadRepliesAndMessages() { using (Tools.CheckTweets get_tweets = new Togi.Tools.CheckTweets(TwitterUser)) { RepliesTimeLine = get_tweets.CheckRepliesFirsTime(); AddEvents(RepliesTimeLine); SetTweetNumber(tsReplys, GetUnreadItem(RepliesTimeLine)); MessagesTimeLine = get_tweets.CheckMessagesFirsTime(); AddEvents(MessagesTimeLine); SetTweetNumber(tsMessages, GetUnreadItem(MessagesTimeLine)); } }
private void CheckNewTweets() { try { using (Tools.CheckTweets chck = new Togi.Tools.CheckTweets(TwitterUser)) { SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_4", cInfo_)); AddNewTweetInList(chck.CheckTimeLine(), Tweet.TweetTypes.Normal); SetTweetNumber(tsRecents, GetUnreadItem(FriendsTimeLine)); SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_5", cInfo_)); AddNewTweetInList(chck.CheckReplies(), Tweet.TweetTypes.Reply); SetTweetNumber(tsReplys, GetUnreadItem(RepliesTimeLine)); SetStatusMsg(dil_.GetString("TIME_LINE_MESAJ_6", cInfo_)); AddNewTweetInList(chck.CheckMessages(), Tweet.TweetTypes.Message); SetTweetNumber(tsMessages, GetUnreadItem(MessagesTimeLine)); } SetStatusMsg(String.Format(dil_.GetString("TIME_LINE_MESAJ_7", cInfo_), DateTime.Now.ToShortTimeString())); } catch (Exception ex) { SetStatusMsg(ex.Message); } }