private void StatusTick(object sender, EventArgs e) { lock (_semaphore) { groupTableAdapter.Fill(_dataSet.Group); _sslRegister.Text = String.Format("{0} groups registered.", _dataSet.Group.Rows.Count); ReportGroupTableAdapter.Fill(_dataSet.ReportGroup); _dgvResults.Refresh(); } }
private void SaveSummaryReport(object sender, EventArgs e) { ReportGroupTableAdapter reportGroupTableAdapter = new ReportGroupTableAdapter(); ReportGroupResultTableAdapter reportGroupResultTableAdapter = new ReportGroupResultTableAdapter(); reportGroupTableAdapter.Fill(_dataSet.ReportGroup); reportGroupResultTableAdapter.Fill(_dataSet.ReportGroupResult); categoryTableAdapter.Fill(_dataSet.Category); try { EmitSummaryReport report = new EmitSummaryReport(_dataSet); report.Save(true); report.Launch(); } catch (Exception ex) { MessageBox.Show(ex.StackTrace.ToString(), ex.Message, MessageBoxButtons.OK); } }