From c4202ae2daf74e47c1327ccbf0113cc3a7512c7a Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 Aug 2018 18:41:25 -0400 Subject: Changed the crashing --- Project Ports/Crash.Designer.cs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Project Ports/Crash.Designer.cs') diff --git a/Project Ports/Crash.Designer.cs b/Project Ports/Crash.Designer.cs index 3a81699..5f3906a 100644 --- a/Project Ports/Crash.Designer.cs +++ b/Project Ports/Crash.Designer.cs @@ -29,6 +29,7 @@ private void InitializeComponent() { this.txtCrash = new System.Windows.Forms.RichTextBox(); + this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // txtCrash @@ -42,11 +43,25 @@ this.txtCrash.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtCrash.ForeColor = System.Drawing.Color.Red; this.txtCrash.Location = new System.Drawing.Point(12, 12); + this.txtCrash.MaxLength = 32767; this.txtCrash.Name = "txtCrash"; this.txtCrash.ReadOnly = true; + this.txtCrash.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; this.txtCrash.Size = new System.Drawing.Size(693, 441); this.txtCrash.TabIndex = 0; - this.txtCrash.Text = ""; + this.txtCrash.Text = "PortOS.GUI has crashed...\nSYSTEM ERROR: CRASHED\nRebooting PortOS...."; + // + // button1 + // + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.ForeColor = System.Drawing.Color.White; + this.button1.Location = new System.Drawing.Point(553, 430); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(152, 23); + this.button1.TabIndex = 1; + this.button1.Text = "Close (This will be removed)"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); // // Crash // @@ -54,6 +69,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Black; this.ClientSize = new System.Drawing.Size(717, 465); + this.Controls.Add(this.button1); this.Controls.Add(this.txtCrash); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "Crash"; @@ -67,5 +83,6 @@ #endregion private System.Windows.Forms.RichTextBox txtCrash; + private System.Windows.Forms.Button button1; } } \ No newline at end of file -- cgit v1.2.3