/// <summary> /// 修改基本信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dataGridView1.CurrentCell.RowIndex; string id = dataGridView1.Rows[index].Cells["id2"].Value.ToString(); AddBaseInfo frmaddbase = new AddBaseInfo(Convert.ToInt32(id), this._Qx); frmaddbase.ShowDialog(); }
/// <summary> /// 基本信息新增事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tab1_btnAdd_Click(object sender, EventArgs e) { AddBaseInfo frmAddbaseinfo = new AddBaseInfo(0, _Qx); frmAddbaseinfo.ShowDialog(); }