Exemple #1
0
        private void btnUpdatePic_Click(object sender, EventArgs e)//更新封面
        {
            string     pic     = this.txtbPic.Text.ToString();
            int        bookid  = Convert.ToInt32(this.txtbID.Text); //记录该条数据的主键值
            frmBookPic bookpic = new frmBookPic();                  //实例化封面查看窗体

            bookpic.ShowContent(bookid, pic);                       //调用封面查看窗体中的方法
            bookpic.ShowDialog();                                   //封面查看窗体以模式对话框方式打开
        }
Exemple #2
0
        private void btnUpdatePic_Click(object sender, EventArgs e)
        {
            string     pic     = this.txtbPic.Text.ToString();
            int        bookid  = Convert.ToInt32(this.txtbID.Text);
            frmBookPic bookpic = new frmBookPic();

            bookpic.ShowContent(bookid, pic);
            bookpic.ShowDialog();
        }