/// <summary> /// 双击事件 /// <auth>张业兴</auth> /// <date>2012-12-12</date> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gcPicSignList_MouseDoubleClick(object sender, MouseEventArgs e) { try { DataRow foucesRow = gvPicSign.GetFocusedDataRow(); if (foucesRow == null) { return; } PicSignForm picSignForm = new PicSignForm(m_App, foucesRow); picSignForm.StartPosition = FormStartPosition.CenterParent; if (picSignForm.ShowDialog() == DialogResult.OK) { InitgcPicSignList(); } InitgcPicSignList(); } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
/// <summary> /// 编辑按钮 /// <auth>张业兴</auth> /// <date>2012-12-12</date> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEdit_Click(object sender, EventArgs e) { try { if (gvPicSign.FocusedRowHandle < 0) { MessageBox.Show("请选择一条记录"); return; } DataRow foucesRow = gvPicSign.GetDataRow(gvPicSign.FocusedRowHandle); if (foucesRow == null) { MessageBox.Show("请选择一条记录"); return; } PicSignForm picSignForm = new PicSignForm(m_App, foucesRow); picSignForm.ShowDialog(); } catch (Exception ex) { MyMessageBox.Show(1, ex); } }