Ejemplo n.º 1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            if (!Declare.IS_SUPPER_USER && Declare.UserName != "anhdtn1174" && Declare.UserName != "superuser" &&

                ((NguoiDungInfor)Declare.USER_INFOR).NhomNguoiDung != "KTK")
            {
                return;
            }

            var frm = new frm_ChiTietTongHopKiemKe(null);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                frmProgress.Instance.DoWork(LoadDuLieu);
            }
        }
Ejemplo n.º 2
0
        private void grcList_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                var info = (DotKiemKeInfor)grvList.GetFocusedRow();

                var frm = new frm_ChiTietTongHopKiemKe(info);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    frmProgress.Instance.DoWork(LoadDuLieu);
                }
            }
            catch (Exception ex)
            {
#if DEBUG
                MessageBox.Show(ex.ToString());
#else
                MessageBox.Show(ex.Message);
#endif
            }
        }