예제 #1
0
파일: frmMain.cs 프로젝트: thanhnam510/TN
        private void frmMain_Load(object sender, EventArgs e)
        {
            this.v_ds_phanmanhTableAdapter.Fill(this.dS_PHANMANH.v_ds_phanmanh);
            Program.bds_dspm = bds_ds_phanmanh;
            frmDangnhap f = new frmDangnhap();

            f.MdiParent = this;
            f.Show();
        }
예제 #2
0
파일: frmMain.cs 프로젝트: thanhnam510/TN
        private void lbThoat_Click(object sender, EventArgs e)
        {
            lbThoat.Visible    = false;
            rbDangnhap.Enabled = true;
            frmDangnhap f = new frmDangnhap();

            f.MdiParent = this;
            f.Show();
            this.MA.Text    = "";
            this.HOTEN.Text = "";
            this.NHOM.Text  = "";
        }
예제 #3
0
파일: frmMain.cs 프로젝트: thanhnam510/TN
        private void btnDangnhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = this.CheckExists(typeof(frmDangnhap));

            if (f != null)
            {
                f.Activate();
            }
            else
            {
                f           = new frmDangnhap();
                f.MdiParent = this;
                f.Show();
            }
        }
예제 #4
0
        private void btnDangxuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            rbMenu.Visible      = rbGV.Visible = rbSV.Visible = false;
            rb1.Visible         = true;
            rbDangnhap.Enabled  = true;
            btnDangnhap.Enabled = true;
            btnDangxuat.Enabled = false;
            Form frm;

            foreach (Form f in this.MdiChildren)
            {
                f.Close();
            }
            frm           = new frmDangnhap();
            frm.MdiParent = this;
            frm.Show();
            this.MA.Text    = "";
            this.HOTEN.Text = "";
            this.NHOM.Text  = "";
        }