private void tsItemDrucken_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; var report = ReportManager.GetReportByName(EReports.Inventurliste); var r = new Form_Report(report); r.Show(); r.Refresh(); this.Cursor = Cursors.Default; }
private void tsItemDruckenDatenblattVorschau_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; //Alle angezeigten KundenID's auslesen. List<int> data = new List<int>(); foreach (DataGridViewRow row in dgrKunden.Rows) { DataGridViewCheckBoxCell cell = row.Cells[0] as DataGridViewCheckBoxCell; if (cell.Value != null) { data.Add((int)row.Cells["KundeID"].Value); } } var report = ReportManager.GetReportByNameForSelectedRecord(EReports.Kundendatenblatt, data); var r = new Form_Report(report); r.Show(); r.Refresh(); this.Cursor = Cursors.Default; }