private void btnAdd_Click(object sender, EventArgs e)
        {
            frmProjectProblem frm = new frmProjectProblem();

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
        private void btnCopy_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            ProjectProblemModel model = (ProjectProblemModel)ProjectProblemBO.Instance.FindByPK(id);

            //_rownIndex = grvData.FocusedRowHandle;
            model.ID = 0;
            frmProjectProblem frm = new frmProjectProblem();

            frm.ProjectProblem  = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            ProjectProblemModel model = (ProjectProblemModel)ProjectProblemBO.Instance.FindByPK(id);

            //if (Global.AppUserName != model.UpdatedBy)
            //{
            //    MessageBox.Show("Bạn không có quyền sửa vấn đề này!", TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Stop);
            //    return;
            //}

            _rownIndex = grvData.FocusedRowHandle;
            frmProjectProblem frm = new frmProjectProblem();

            frm.ProjectProblem  = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }