private void buttonReport_Click(object sender, EventArgs e) { try { if (null == _result) { return; } ReportControl reportBox = new ReportControl(_result, Host.CurrentLanguageID); this.Controls.Add(reportBox); reportBox.Dock = DockStyle.Fill; reportBox.BringToFront(); reportBox.Show(); } catch (Exception exception) { Forms.ErrorForm.ShowError(exception, ErrorCategory.NonCritical, Host.CurrentLanguageID); } }
private void buttonReport_Click(object sender, EventArgs e) { try { if (null == _result) return; ReportControl reportBox = new ReportControl(_result, Host.CurrentLanguageID); this.Controls.Add(reportBox); reportBox.Dock = DockStyle.Fill; reportBox.BringToFront(); reportBox.Show(); } catch (Exception exception) { Forms.ErrorForm.ShowError(exception,ErrorCategory.NonCritical, Host.CurrentLanguageID); } }