Beispiel #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)
            {
            }
        }
Beispiel #2
0
        private void ProcessForm_Load(object sender, EventArgs e)
        {
            if (_Tag == null)
            {
                return;
            }

            if (_Tag is ReportRuntime)
            {
                ReportRuntime reportRuntime = _Tag as ReportRuntime;

                reportRuntime.StartAnalyseReportThread();
            }
            else if (_Tag is ReportDrawing)
            {
                this.Visible = false;
                ReportDrawing reportDrawing = _Tag as ReportDrawing;
                reportDrawing.StartExportReportThread();
            }
            this.Height = 75;
        }