Beispiel #1
0
        private void frm_main_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSet_NguoiDung.TAIKHOAN' table. You can move, or remove it, as needed.
            //this.tAIKHOANTableAdapter.Fill(this.dataSet_NguoiDung.TAIKHOAN);
            try
            {
                this.qL_QuyenTryCapTableAdapter.Quyen_DNhap(this.dataSet_NguoiDung.QL_QuyenTryCap, DangNhap.DangNhap.TenTK);
                TenTK = DangNhap.DangNhap.TenTK;
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
            Quyen();
            MD5_MH mh = new MD5_MH();

            if (tAIKHOANTableAdapter.KT_MK_nhanvien(TenTK, mh.Ma_Hoa("12345", "Password")) == 1)
            {
                Doi_MK frm = new Doi_MK(TenTK, 1);
                frm.ShowDialog();
            }
        }
Beispiel #2
0
        private void btn_nhatkyht_Click(object sender, EventArgs e)
        {
            Doi_MK frm = new Doi_MK(TenTK);

            frm.Show();
        }