private void btnUpdate_Click(object sender, EventArgs e)
 {
     if(selectedRowIndex >= 0)
     {
         frmRegOverTime regOverTime = new frmRegOverTime();
         regOverTime.DsOverTime = dsRegOverTime;
         regOverTime.CurrentOverTime = selectedRowIndex;
         regOverTime.ShowDialog(this);
     }
     else
     {
         string str = WorkingContext.LangManager.GetString("frmRegOverTime_Edit_messa");
         string str1 = WorkingContext.LangManager.GetString("frmRegOverTime_Edit_Title");
         //MessageBox.Show("Bạn chưa chọn nhân viên nào!", "Sửa thời gian làm thêm giờ", MessageBoxButtons.OK,  MessageBoxIcon.Exclamation);
         MessageBox.Show(str, str1, MessageBoxButtons.OK,  MessageBoxIcon.Exclamation);
     }
     lvwOverTime.Refresh();
     PopulateOverTime();
     selectedRowIndex = -1;
     tableModel1.Selections.Clear();
 }
 private void lvwOverTime_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 2)
     {
         if (lvwOverTime.SelectedItems.Length > 0)
         {
             frmRegOverTime regOverTime = new frmRegOverTime();
             regOverTime.DsOverTime = dsRegOverTime;
             regOverTime.CurrentOverTime = selectedRowIndex;
             regOverTime.ShowDialog(this);
             PopulateOverTime();
         }
         selectedRowIndex = -1;
         tableModel1.Selections.Clear();
     }
 }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmRegOverTime regOverTime = new frmRegOverTime();
     regOverTime.DsOverTime = dsRegOverTime;
     regOverTime.ShowDialog(this);
     PopulateOverTime();
     selectedRowIndex = -1;
     tableModel1.Selections.Clear();
 }