private void barBurdenLineForecast_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { IList <BurdenLineForecast> li1 = this.ctrlBurdenLineForecast1.ObjectList; dataTable.Rows.Clear(); foreach (BurdenLineForecast bl in li1) { DataRow newRow = dataTable.NewRow(); newRow["A"] = bl.BurdenYear; newRow["B"] = false; dataTable.Rows.Add(newRow); } FormChooseYears cy = new FormChooseYears(); cy.DT = dataTable; if (cy.ShowDialog() != DialogResult.OK) { return; } FrmBurdenLineForecastType frm = new FrmBurdenLineForecastType(); frm.DT = cy.DT; frm.IsSelect = isSelect; if (!PrintRight) { frm.PRINTManage = false; } if (frm.ShowDialog() == DialogResult.OK && isSelect) { gcontrol = frm.gridControl1; title = frm.Title; unit = "µ¥Î»£ºÍòǧÍß"; DialogResult = DialogResult.OK; } }
private void barBurdenLineForecast_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { IList<BurdenLineForecast> li1 = this.ctrlBurdenLineForecast1.ObjectList; dataTable.Rows.Clear(); foreach (BurdenLineForecast bl in li1) { DataRow newRow = dataTable.NewRow(); newRow["A"] = bl.BurdenYear; newRow["B"] = false; dataTable.Rows.Add(newRow); } FormChooseYears cy = new FormChooseYears(); cy.DT = dataTable; if (cy.ShowDialog() != DialogResult.OK) return; FrmBurdenLineForecastType frm = new FrmBurdenLineForecastType(); frm.DT = cy.DT; frm.IsSelect = isSelect; if (!PrintRight) frm.PRINTManage = false; if (frm.ShowDialog() == DialogResult.OK && isSelect) { gcontrol = frm.gridControl1; title = frm.Title; unit = "��λ����ǧ��"; DialogResult = DialogResult.OK; } }