private void ctlStatus_DataBind(object sender, EventArgs e) { // set the Text property of the Label to the TotalPostCount property var ctlStatus = (LiteralControl)sender; var container = (ListViewDataItem)ctlStatus.NamingContainer; var status = ((TwitterStatus)container.DataItem); ctlStatus.Text = String.Format( "<li>{0}<br /><span class=\"ajax__twitter_createat\">{1}</span></li>", Twitter.ActivateLinks(status.Text), Twitter.Ago(status.CreatedAt) ); }
private void ctlStatus_DataBind(object sender, EventArgs e) { // set the Text property of the Label to the TotalPostCount property var ctlStatus = (LiteralControl)sender; var container = (ListViewDataItem)ctlStatus.NamingContainer; var status = ((TwitterStatus)container.DataItem); // Show status ctlStatus.Text = String.Format( "<li><img src=\"{0}\" /><div>{1}<br /><span class=\"ajax__twitter_createat\">{2}</span></div></li>", status.User.ProfileImageUrl, status.Text, Twitter.Ago(status.CreatedAt) ); }
internal DefaultSearchStatusTemplate(Twitter twitter) { _twitter = twitter; }
public DefaultSearchLayoutTemplate(Twitter twitter) { this._twitter = twitter; }
internal DefaultProfileStatusTemplate(Twitter twitter) { _twitter = twitter; }
public DefaultProfileLayoutTemplate(Twitter twitter) { this._twitter = twitter; }
/// <summary> /// Intializes the twitter component and passes to initialize event of base class. /// </summary> /// <param name="component">component of twitter type.</param> public override void Initialize(System.ComponentModel.IComponent component) { _twitter = component as Twitter; if (_twitter == null) throw new ArgumentException("Component must be a Twitter control", "component"); base.Initialize(component); }
public DefaultSearchLayoutTemplate(Twitter twitter) { this._twitter = twitter; }
internal DefaultSearchStatusTemplate(Twitter twitter) { _twitter = twitter; }
public DefaultProfileLayoutTemplate(Twitter twitter) { this._twitter = twitter; }
internal DefaultProfileStatusTemplate(Twitter twitter) { _twitter = twitter; }