Exemplo n.º 1
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     frm_DangNhap           = new FormDangNhap();
     frm_DangNhap.MdiParent = this;
     frm_DangNhap.Dock      = DockStyle.Fill;
     frm_DangNhap.Show();
     KiemTraDangNhap();
 }
Exemplo n.º 2
0
 private void btn_DangXuat_Click(object sender, EventArgs e)
 {
     if (_DaDangNhap)
     {
         _DaDangNhap = false;
         KiemTraDangNhap();
         DongTatCaForm();
         frm_DangNhap           = new FormDangNhap();
         frm_DangNhap.MdiParent = this;
         frm_DangNhap.Dock      = DockStyle.Fill;
         frm_DangNhap.Show();
     }
 }