private void button2_Click(object sender, EventArgs e) { if (pieChart.Visible) { //pieChart.ShowPrintPreview(); DataTable RtDt = new DataTable(); if (tabControl3.SelectedIndex == 0) { if (XGridC != null) { if (XGridC.Name == "gridControl5" || XGridC.Name == "gridControl6" || XGridC.Name == "gridControl9") { RtDt = (DataTable)XGridC.DataSource; } } } if (tabControl3.SelectedIndex == 1) { RtDt = (DataTable)gridControl7.DataSource; } if (tabControl3.SelectedIndex == 2) { RtDt = (DataTable)gridControl8.DataSource; } XrPause xrp = new XrPause(RtDt, pieChart.Titles[0].Text); xrp.ShowPreview(); } }
private void button16_Click(object sender, EventArgs e) { try { if (tabControl6.SelectedIndex == 0) { Dt = (DataTable)gridControl11.DataSource; } if (tabControl6.SelectedIndex == 1) { Dt = (DataTable)gridControl12.DataSource; } if (tabControl6.SelectedIndex == 2) { XrPause xrp = new XrPause((DataTable)gridControl11.DataSource, comboBox3.Text + "异常情况统计"); xrp.ShowPreview(); return; } if (Dt != null && Dt.Rows.Count > 0) { XrROList xr1 = new XrROList(Dt, 1, comboBox3.Text + tabControl6.SelectedTab.Text); xr1.ShowPreview(); } } catch (Exception Err) { MessageBox.Show(Err.Message); } }
private void button3_Click(object sender, EventArgs e) { XrPause xrp = new XrPause((DataTable)gridControl1.DataSource, comboBox6.Text + tabControl5.SelectedTab.Text); xrp.ShowPreview(); }