/// <summary> /// 默认加载主窗口 /// </summary> void InitTabbedMDI() { Form childForm = new ChildForm(); AddPageMdiBarItem(childForm, bbchildForm); //xtraTabbedMdiManager1.MdiParent = this; //设置控件的父表单.. //this.xtraTabbedMdiManager1.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InAllTabPagesAndTabControlHeader; //设置标签后面添加删除按钮 , 多个标签只需要设置一次.. }
private void navBarItem8_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { Form childForm = new ChildForm(); AddPageMdiNavBarItem(childForm, e.Link.Item); }
private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form childForm = new ChildForm(); AddPageMdiBarItem(childForm, e.Link.Item); }
private void bbchildForm_ItemClick(object sender, ItemClickEventArgs e) { Form childForm = new ChildForm(); AddPageMdiBarItem(childForm, bbchildForm); }