1个回答
2014-11-16
展开全部
第一个界面:
字符串bookname的= dataGridView1.Rows [e.RowIndex] .Cells [“bookname的”] Value.ToString();
串ISBN = dataGridView1.Rows [e.RowIndex] .Cells [。 “国际标准书号”] Value.ToString();.
串笔者= dataGridView1.Rows [e.RowIndex] .Cells [“Authoer”] Value.ToString();.
串出版商= dataGridView1.Rows [E .RowIndex] .Cells [“出版商”] Value.ToString()TRIM(); ..
串价格= dataGridView1.Rows [e.RowIndex] .Cells [“价格“] Value.ToString();.
字符串布劳尔= dataGridView1.Rows [e.RowIndex] .Cells [“浏览器”] Value.ToString();.
INT的BookID = Convert.ToInt32(dataGridView1.Rows [e.RowIndex] .Cells [“BOOKID”]。价值);
BookUser使用=新BookUser();
use.BookID = BOOKID;
use.Bookname = bookname的;
use.ISBN1 =国际标准书号;
use.Authoer1 =作者;
use.Publisher1 =发行商;
use.Price1 =价格;
use.Browser1 =布劳尔;
窗体2 FRM =新的Form2();
frm.Tag =使用;
frm.ShowDialog();
第二个画面:
BookUser BU =(BookUser)this.Tag;
textBox1.Text = bu.Bookname;
textBox2.Text = bu.ISBN1;
textBox3.Text = bu.Authoer1;
textBox4.Text = bu.Publisher1;
textBox5.Text = bu.Price1;
textBox6.Text = BU。 Browser1;
字符串bookname的= dataGridView1.Rows [e.RowIndex] .Cells [“bookname的”] Value.ToString();
串ISBN = dataGridView1.Rows [e.RowIndex] .Cells [。 “国际标准书号”] Value.ToString();.
串笔者= dataGridView1.Rows [e.RowIndex] .Cells [“Authoer”] Value.ToString();.
串出版商= dataGridView1.Rows [E .RowIndex] .Cells [“出版商”] Value.ToString()TRIM(); ..
串价格= dataGridView1.Rows [e.RowIndex] .Cells [“价格“] Value.ToString();.
字符串布劳尔= dataGridView1.Rows [e.RowIndex] .Cells [“浏览器”] Value.ToString();.
INT的BookID = Convert.ToInt32(dataGridView1.Rows [e.RowIndex] .Cells [“BOOKID”]。价值);
BookUser使用=新BookUser();
use.BookID = BOOKID;
use.Bookname = bookname的;
use.ISBN1 =国际标准书号;
use.Authoer1 =作者;
use.Publisher1 =发行商;
use.Price1 =价格;
use.Browser1 =布劳尔;
窗体2 FRM =新的Form2();
frm.Tag =使用;
frm.ShowDialog();
第二个画面:
BookUser BU =(BookUser)this.Tag;
textBox1.Text = bu.Bookname;
textBox2.Text = bu.ISBN1;
textBox3.Text = bu.Authoer1;
textBox4.Text = bu.Publisher1;
textBox5.Text = bu.Price1;
textBox6.Text = BU。 Browser1;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询