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(); }
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(); }