private void AHPbutton_Click(object sender, EventArgs e) { AhpXF frm = new AhpXF(); frm.MdiParent = this; frm.Show(); }
private void AHPnavBarItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { var doc = documentManager1.GetDocument(frmAhp); if (doc != null) { tabbedView1.Controller.Activate(doc); } else { frmAhp = new AhpXF(); frmAhp.MdiParent = this; frmAhp.Show(); } }