private void GetBlog() { if (blogList.SelectedItems.Count == 1) { ListViewItem selectedItem = blogList.SelectedItems[0]; curBlog = Client.GetBlogDetail(selectedItem.Tag.ToString()); titleLabel.Text = curBlog.Title; authorLabel.Text = curBlog.Author + " Posted at " + curBlog.UpdateTime; blogContent.Text = curBlog.Content; } }
private void blogList_SelectedIndexChanged(object sender, EventArgs e) { curBlog = null; GetBlog(); GetBlogComments(); }