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