Esempio n. 1
0
 private void dgvTimeSheet_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvTimeSheet.SelectedRows.Count > 0 && e.RowIndex != -1)
     {
         frmTimesheetDetails pForm = new frmTimesheetDetails();
         pForm.FormTimesheet = this;
         pForm.Username      = _strUsername;
         pForm.FocusDate     = clsValidator.CheckDate(dgvTimeSheet.Rows[e.RowIndex].Cells[1].Value.ToString());
         pForm.Show();
     }
 }
Esempio n. 2
0
 private void tbtnViewTimesheet_Click(object sender, EventArgs e)
 {
     if (dgvTimeSheet.SelectedRows.Count > 0)
     {
         frmTimesheetDetails pForm = new frmTimesheetDetails();
         pForm.FormTimesheet = this;
         pForm.Username      = _strUsername;
         pForm.FocusDate     = clsValidator.CheckDate(dgvTimeSheet.SelectedRows[0].Cells[1].Value.ToString());
         pForm.Show();
     }
 }