Ejemplo n.º 1
0
        private void vwRptDiag_Load(object sender, EventArgs e)
        {
            try
            {
                Color[] clrs = cmnCde.getColors();
                this.BackColor = clrs[0];

                /*this.webBrowser1 = new System.Windows.Forms.WebBrowser();
                 * this.splitContainer1.Panel2.Controls.Add(this.webBrowser1);
                 * //
                 * // webBrowser1
                 * //
                 * this.webBrowser1.Location = new System.Drawing.Point(393, 9);
                 * this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
                 * this.webBrowser1.Name = "webBrowser1";
                 * this.webBrowser1.Size = new System.Drawing.Size(288, 250);
                 * this.webBrowser1.TabIndex = 1;*/
                if (this.inrptOutput == "VIEW LOG" ||
                    this.inrptOutput.ToLower() == "none")
                {
                    this.splitContainer1.Panel2.Controls.Clear();
                    this.richTextBox1.Dock = DockStyle.Fill;
                    this.splitContainer1.Panel2.Controls.Add(this.richTextBox1);
                    System.Windows.Forms.Application.DoEvents();
                    this.richTextBox1.Text = cmnCde.getLogMsg(
                        cmnCde.getLogMsgID("rpt.rpt_run_msgs",
                                           "Process Run", long.Parse(
                                               inrptRn_ID.ToString())), "rpt.rpt_run_msgs");
                }
                else
                {
                    this.populateRunDet();
                }
            }
            catch (Exception ex)
            {
                System.Threading.Thread.Sleep(3000);
                //this.printPrvwButton.PerformClick();
            }
            finally
            {
            }
        }