Ejemplo n.º 1
0
        /// <summary>
        /// 抢沙发
        /// </summary>
        public void getSofa()
        {
            //获取投稿列表并选出文章投稿
            string  s1      = webutil.getPublish(webutil.cookiec);
            JObject jsonObj = JObject.Parse(s1);
            JArray  jar     = JArray.Parse(jsonObj["contents"].ToString());
            JObject j       = JObject.Parse(jar[0].ToString());

            contentList = JsonConvert.DeserializeObject(s1, typeof(List <contents>)) as List <contents>;
            if (contentList.Count > 0)
            {
                contents con = contentList[0];
                if (con.getIsArticle() == "1")
                {
                    CommentBox comment = new CommentBox();
                    comment.Show();
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// pinglun
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonComment_Click(object sender, EventArgs e)
        {
            CommentBox box = new CommentBox();

            box.Show();
        }