private void btnShiftDetails_Click(object sender, EventArgs e) { frmShiftDetails pForm = new frmShiftDetails(); pForm.ShiftCode = cmbShift.SelectedValue.ToString(); pForm.ShowDialog(); }
private void tbtnShiftDetails_Click(object sender, EventArgs e) { if (dgvTimeSheet.SelectedRows.Count > 0) { frmShiftDetails pForm = new frmShiftDetails(); pForm.ShiftCode = dgvTimeSheet.SelectedRows[0].Cells[2].Value.ToString(); pForm.Show(); } }
private void btnViewSun_Click(object sender, EventArgs e) { frmShiftDetails sd = new frmShiftDetails(cmbShiftSun.SelectedValue.ToString()); sd.ShowDialog(); }
private void btnViewSat_Click(object sender, EventArgs e) { frmShiftDetails pForm = new frmShiftDetails(cmbShiftSat.SelectedValue.ToString()); pForm.ShowDialog(); }