Ejemplo n.º 1
0
        public void AddNewStatus(Status status)
        {
            MentionList.SuspendLayout();
            replies.Add(status);
            var newTweet = new TweetItem(status, this);

            MentionList.Controls.Add(newTweet);
            MentionList.Controls.SetChildIndex(newTweet, 0);
            MentionList.ResumeLayout();

            this.status = status;
        }
Ejemplo n.º 2
0
        private async Task GetReply(Status status)
        {
            try
            {
                if (status.InReplyToStatusId != null)
                {
                    Status replyStatus = await TwitterTools.ShowStatus(id : (long)status.InReplyToStatusId);

                    replies.Add(replyStatus);

                    MentionList.SuspendLayout();
                    MentionList.Controls.Add(new TweetItem(replyStatus, this));
                    MentionList.ResumeLayout();

                    await GetReply(replyStatus);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }