示例#1
0
        public void Close(bool isOK)
        {
            if (_Tag != null)
            {
                if (_Tag is ReportRuntime)
                {
                    ReportRuntime reportRuntime = _Tag as ReportRuntime;
                    reportRuntime.StopAnalyseReportThread();
                }
                else if (_Tag is ReportDrawing)
                {
                    ReportDrawing reportDrawing = _Tag as ReportDrawing;
                    reportDrawing.StopExportReportThread();
                }
            }

            try
            {
                timer1.Enabled = false;
                if (isOK)
                {
                    this.DialogResult = DialogResult.OK;
                }
                else
                {
                    this.DialogResult = DialogResult.Cancel;
                }
            }
            catch (System.Exception ex)
            {
            }
        }
示例#2
0
 public bool CancelQueryReport()
 {
     if (_ReportRuntime != null)
     {
         _ReportRuntime.StopAnalyseReportThread();
     }
     return(true);
 }