示例#1
0
 private void dgShiftList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgShiftList.SelectedRows.Count > 0)
     {
         frmShiftModify pForm = new frmShiftModify(this);
         pForm.ShiftCode = dgShiftList.SelectedRows[0].Cells[0].Value.ToString();
         pForm.ShowDialog();
     }
 }
示例#2
0
 private void tbtnModify_Click(object sender, EventArgs e)
 {
     if (dgShiftList.SelectedRows.Count > 0)
     {
         frmShiftModify pForm = new frmShiftModify(this);
         pForm.ShiftCode = dgShiftList.SelectedRows[0].Cells[0].Value.ToString();
         pForm.ShowDialog();
     }
 }