//统计 private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //FrmBurdenLineMaxDate frm = new FrmBurdenLineMaxDate(); ////frm.ShowDialog(); //frm.IsSelect = isSelect; //if (isSelect && frm.ShowDialog() == DialogResult.OK) //{ // gcontrol = frm.gridControl1; // title = frm.Title; // unit = "单位:小时"; // DialogResult = DialogResult.OK; //} Form1Print frm = new Form1Print(); frm.IsSelect = isSelect; frm.Text = this.ctrlPowerEachList1.FocusedObject.ListName; frm.GridDataTable = ConvertTreeListToDataTable(treeList1); if (frm.ShowDialog() == DialogResult.OK && isSelect) { gcontrol = frm.gridControl1; title = frm.Title; unit = "单位:万元"; DialogResult = DialogResult.OK; } //f.ShowDialog(); //} }