/// <summary> /// 双击图片列表编辑信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dataGridView2.CurrentCell.RowIndex; string imgId = dataGridView2.Rows[index].Cells["id"].Value.ToString(); AddImg frmaddimg = new AddImg(Convert.ToInt32(imgId), this._Qx); frmaddimg.Show(); }
/// <summary> /// 图片新增 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { AddImg frmAddimg = new AddImg(0, this._Qx); frmAddimg.ShowDialog(); }