private void SetTweetItemThisForm(Tweet ti, string lTimeCaption) { if (InvokeRequired) { BeginInvoke(new SetTweetItem(SetTweetItemThisForm), new object[] { ti, lTimeCaption }); } TweetItem content_ = new TweetItem(ti); content_.lTime.Text = lTimeCaption; content_.Dock = DockStyle.Fill; this.Controls.Add(content_); }
private void LoadTweetItem(IList<Tweet> liste,bool isRead) { lock (this) { foreach (Tweet item in liste) { item.isRead = isRead; TweetItem ti = new TweetItem(item); FriendsTimeLine.Add(ti); } } }
private void AddEventsTweetItem(TweetItem item) { item.tsReply.Click += new EventHandler(tsReply_Click); item.tsFavorite.Click += new EventHandler(tsFavorite_Click); item.tsReTweet.Click += new EventHandler(tsReTweet_Click); item.tsMessage.Click += new EventHandler(tsMessage_Click); item.tsUnfollow.Click += new EventHandler(tsUnfollow_Click); // TweetType'ı denetleniyor. item.TweetTypeSec_ += new TweetItem.SetTweetType(item_TweetTypeSec_); item_TweetTypeSec_(item, new EventArgs()); item.tsDelete.Click += new EventHandler(tsDelete_Click); //Silinebilirliği denetleniyor. item.TweetAllowDelete_ += new TweetItem.AllowDelete(item_TweetAllowDelete_); item_TweetAllowDelete_(item, new EventArgs()); //Okundu. item.TweetText.Click += new EventHandler(TweetText_Click); //Info item.tsUserInfo.Click += new EventHandler(tsUserInfo_Click); //Okunduğu zaman item.SetRead_ += new TweetItem.dSetRead(item_SetRead_); }
void TweetItemLanguageCtor(TweetItem ti) { ti.tsReply.Text = dil_.GetString("ITEM_MENU_1", cInfo_); ti.tsReTweet.Text = dil_.GetString("ITEM_MENU_2", cInfo_); ti.tsMessage.Text = dil_.GetString("ITEM_MENU_3", cInfo_); ti.SetMenuText(ti.tsFavorite, dil_.GetString(ti.ItemTweet.isFavorite ? "ITEM_MENU_5" : "ITEM_MENU_4", cInfo_)); ti.tsDelete.Text = dil_.GetString("ITEM_MENU_6", cInfo_); ti.tsUserInfo.Text = dil_.GetString("ITEM_MENU_7", cInfo_); ti.lTime.Text = String.Format(dil_.GetString("ITEM_MENU_8",cInfo_), ToRelativeDate(ti.ItemTweet.CreateAt), ti.ItemTweet.Source); ti.tsUnfollow.Text = dil_.GetString("ITEM_MENU_9", cInfo_); }