コード例 #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="TweetDisplay"/> class.
        /// </summary>
        /// <param name="t">
        /// The t.
        /// </param>
        public TweetDisplay(Tweet t)
        {
            this.T = t;
            this.InitializeComponent();
            this.label1.Text = t.Content;
            this.label2.Text = t.Author;

            this.pictureBox1.Image = t.Image;
        }
コード例 #2
0
        /// <summary>
        /// Initialises a new instance of the <see cref="DisplayedTweet"/> class.
        /// </summary>
        /// <param name="tweet">
        /// The tweet.
        /// </param>
        public DisplayedTweet(Tweet tweet)
        {
            this.tweet = tweet;
            this.InitializeComponent();
            this.label1.Text = tweet.Content;

            this.label2.Text = tweet.Author;
            this.button1.Enabled = this.button2.Enabled = true;

            this.pictureBox1.Image = tweet.Image;
            this.label3.Text = tweet.Timestamp;
        }