private void button_look_report(object sender, EventArgs e)
 {
     try
     {
         ReportListForm f = new ReportListForm(to_check_txt_paper, report, report_data);
         f.Show();
     }
     catch { }
 }
Esempio n. 2
0
        /*
         * 查看查重报告列表按钮
         */
        private void ButtonShowReportList(object sender, EventArgs e)
        {
            ReportListForm reportListForm = null;

            try
            {
                //读取查重报告列表并展示
                reportListForm = new ReportListForm(RunningEnv.ProgramParam.ToCheckTxtPaperPath,
                                                    RunningEnv.ProgramParam.ReportPath,
                                                    RunningEnv.ProgramParam.ReportDataPath);
                reportListForm.ShowDialog();
            }
            catch {
                MessageBox.Show(this, "查重报告数据损坏,无法展示!", "错误");
            }
            finally
            {
                if (reportListForm != null)
                {
                    reportListForm.Dispose();
                }
            }
        }