Пример #1
0
        //吐槽
        private void btnComplain_Click(object sender, EventArgs e)
        {
            F_SimplyReply fs = new F_SimplyReply();

            fs.Text  = "                          吐槽一下~~~~";
            fs.func += new Func <bool>(() =>
            {
                if (!string.IsNullOrEmpty(fs.txtContent.Text))
                {
                    bool result = icookcommentInfoService.AddEntity(new cookcommentinfo()
                    {
                        Guid_id = Guid.NewGuid(),
                        CookId  = current_cookie.Guid_id,
                        UserId  = F_Main.current_user.Guid_id,
                        Content = fs.txtContent.Text
                    });
                    if (result)
                    {
                        //显示提示
                        MessageYyu.ShowMessage("评论成功!");
                        fs.Close();
                        return(true);
                    }
                    MessageYyu.ShowMessage("评论失败,请重试");
                }
                return(false);
            });
            fs.ShowDialog();
            //刷新
            Load_cookie_comment();
        }
Пример #2
0
        private void btnReplay_Click(object sender, EventArgs e)
        {
            F_SimplyReply fs = new F_SimplyReply();

            fs.Text = "回复:自己";
        }