Ejemplo n.º 1
0
 private void frmEmailManager_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     frmEmailManager frm = new frmEmailManager();
     frm.MdiParent = this;
     frm.Show();
 }
Ejemplo n.º 2
0
 private void btnEmail_Click(object sender, EventArgs e)
 {
     frmEmailManager frm = new frmEmailManager();
     bool isOpen = false;
     foreach (Form form in Application.OpenForms)
     {
         if(form.Name == "frmEmailManager")
         {
             isOpen = true;
             form.Focus();
             break;
         }
     }
     if(!isOpen)
     {
         frm.MdiParent = this;
         frm.Show();
     }
 }