January 2012
Intermediate to advanced
396 pages
8h 16m
English
Now that we have all the controls in place, let's write some code to expose a few properties so that this control can be filled with Twitter data:
TweetViewer.cs file:public partial class TweetViewer : UserControl { private int newTweetCount; private bool newTweetAvailable; public int NewTweetCount { get { return newTweetCount;} set { newTweetCount = value;} } private Label _tweeterUserName; public Label TweeterUserName { get { return this.lblTwitterUserName; } set { this.lblTwitterUserName = value; } } private Image _tweeterProfilePic; public Image TweeterProfilePic { get { return profilePhoto.Image;} set { profilePhoto.Image = value;} } private string _latestTweet; ...Read now
Unlock full access