private void toolStripSua_Click(object sender, EventArgs e) { if (cbxNhanVien.SelectedValue.ToString() != string.Empty || cbo_Nam.Text != string.Empty || cbo_Thang.Text != string.Empty || cbo_Ngay.Text != string.Empty || txtGioTC.Text != string.Empty || txtGioTre.Text != string.Empty || chkNgayCong.Checked == false) { if (busCC.Sua(cbxNhanVien.SelectedValue.ToString(), int.Parse(cbo_Nam.Text), int.Parse(cbo_Thang.Text), int.Parse(cbo_Ngay.Text), int.Parse(txtGioTC.Text), int.Parse(txtGioTre.Text), chkNgayCong.Checked)) { MessageBox.Show("Sửa thành công"); } else { MessageBox.Show("Sửa thất bại"); } } else { MessageBox.Show("Thiếu thông tin"); } xem(); }