Exemplo n.º 1
0
 private void btnDangNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Form frm = this.CheckExists(typeof(FormDangNhap));
     if (frm != null) frm.Activate();
     else
     {
         FormDangNhap f = new FormDangNhap();
         f.MdiParent = this;
         f.Show();
     }
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Form frm = this.CheckExists(typeof(FormDangNhap));
     if (frm != null) frm.Activate();
     else
     {
         FormDangNhap f = new FormDangNhap();
         f.MdiParent = this;
         f.Show();
     }
 }