Beispiel #1
0
 /// <summary>
 /// 显示光盘的详细信息
 /// </summary>
 private void DisplayCdInfo()
 {
     if (this.dataGridView1.SelectedRows.Count != 0)
     {
         FrmCdInfo cdinfo = new FrmCdInfo(false);
         cdinfo.cdid.Text = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString().Trim();
         cdinfo.ShowDialog();
     }
 }
Beispiel #2
0
 private void dataGridView1_DoubleClick(object sender, EventArgs e)//显示商品详细信息
 {
     if (this.book.Checked)
     {
         if (this.dataGridView1.SelectedRows.Count != 0)
         {
             FrmBookInfo bookinfo = new FrmBookInfo(true);
             bookinfo.bookid.Text = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString().Trim();
             bookinfo.ShowDialog();
         }
     }
     else
     {
         if (this.dataGridView1.SelectedRows.Count != 0)
         {
             FrmCdInfo cdinfo = new FrmCdInfo(true);
             cdinfo.cdid.Text = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString().Trim();
             cdinfo.ShowDialog();
         }
     }
 }