示例#1
0
 private void dgHolidayList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgHolidayList.SelectedRows.Count > 0)
     {
         frmHolidayEdit pForm = new frmHolidayEdit();
         pForm.HolidayCode     = dgHolidayList.SelectedRows[0].Cells[0].Value.ToString();
         pForm.FormHolidayList = this;
         pForm.ShowDialog();
     }
 }
示例#2
0
 private void tbtnModify_Click(object sender, EventArgs e)
 {
     if (dgHolidayList.SelectedRows.Count > 0)
     {
         frmHolidayEdit pForm = new frmHolidayEdit();
         pForm.HolidayCode     = dgHolidayList.SelectedRows[0].Cells[0].Value.ToString();
         pForm.FormHolidayList = this;
         pForm.ShowDialog();
     }
 }