コード例 #1
0
ファイル: MAIN.cs プロジェクト: yangqinggui1997/QLBHDT
        private void mnuDangXuat_Click(object sender, EventArgs e)
        {
            DANGNHAP dn = new DANGNHAP();

            if (DANGNHAP.ghinhomk == true)
            {
                dn.txtPass.Text        = DANGNHAP.pass;
                dn.txtUsers.Text       = DANGNHAP.user;
                dn.ckbgn.Checked       = true;
                dn.btndangnhap.Enabled = true;
            }
            dn.Show();
            Close();
        }
コード例 #2
0
ファイル: MAIN.cs プロジェクト: yangqinggui1997/QLBHDT
        private void MAIN_FormClosed(object sender, FormClosedEventArgs e)
        {
            mnuStartpage_Click(sender, e);
            DANGNHAP dn = new DANGNHAP();

            if (DANGNHAP.ghinhomk == true)
            {
                dn.txtPass.Text        = DANGNHAP.pass;
                dn.txtUsers.Text       = DANGNHAP.user;
                dn.ckbgn.Checked       = true;
                dn.btndangnhap.Enabled = true;
            }

            BUS_TC.CapnhatTTTruyCap(DANGNHAP.matc, DANGNHAP.danhmuctc, DANGNHAP.thaotac);

            dn.Show();
        }