private void btnLayout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FrmLayout frm = new FrmLayout(); frm.ControlType = this.GetType(); frm.LayoutList = this.LayoutList; frm.ShowDialog(this); }
private void 设置布局RToolStripMenuItem_Click(object sender, EventArgs e) { FrmLayout frm = new FrmLayout(); frm.LayoutList = (this.tcMain.SelectedTabPage.Controls[0] as PageControl).LayoutList; frm.ControlType = htPage[this.tcMain.SelectedTabPage]; frm.ShowDialog(this); }