From 6a19967c46bbc3c3f93e8853183845534923377a Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Fri, 29 Nov 2019 22:55:54 +0100 Subject: [PATCH] Fixed C# a bit --- cashew/MainForm.Designer.cs | 486 ++++++++++++++++++------------------ cashew/MainForm.cs | 106 ++++---- cashew/MainForm.resx | 3 - 3 files changed, 299 insertions(+), 296 deletions(-) diff --git a/cashew/MainForm.Designer.cs b/cashew/MainForm.Designer.cs index c44ad05..a61da87 100644 --- a/cashew/MainForm.Designer.cs +++ b/cashew/MainForm.Designer.cs @@ -38,7 +38,7 @@ this.cseditopen = new MetroFramework.Controls.MetroTile(); this.csediterrorpanel = new MetroFramework.Controls.MetroPanel(); this.csediterrors = new MetroFramework.Controls.MetroLabel(); - this.cseditcode = new ICSharpCode.TextEditor.TextEditorControl(); + this.cseditCode = new ICSharpCode.TextEditor.TextEditorControl(); this.htmltab = new MetroFramework.Controls.MetroTabPage(); this.htmlLoad = new MetroFramework.Controls.MetroTile(); this.htmlSep = new System.Windows.Forms.SplitContainer(); @@ -63,7 +63,6 @@ this.nmtext = new MetroFramework.Controls.MetroLabel(); this.csSaveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.csOpenFileDialog = new System.Windows.Forms.OpenFileDialog(); - this.cseditexecutor = new System.ComponentModel.BackgroundWorker(); this.htmlOptionsMenu = new MetroFramework.Controls.MetroContextMenu(this.components); this.hTMLToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.hTMLStructureSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -145,11 +144,11 @@ this.infotab.SuspendLayout(); this.htmlOptionsMenu.SuspendLayout(); this.SuspendLayout(); - // + // // languageTabControl - // - this.languageTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.languageTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.languageTabControl.Controls.Add(this.cstab); this.languageTabControl.Controls.Add(this.htmltab); @@ -161,15 +160,15 @@ this.languageTabControl.Size = new System.Drawing.Size(797, 433); this.languageTabControl.TabIndex = 0; this.languageTabControl.UseSelectable = true; - // + // // cstab - // + // this.cstab.Controls.Add(this.cseditref); this.cstab.Controls.Add(this.cseditrun); this.cstab.Controls.Add(this.cseditsave); this.cstab.Controls.Add(this.cseditopen); this.cstab.Controls.Add(this.csediterrorpanel); - this.cstab.Controls.Add(this.cseditcode); + this.cstab.Controls.Add(this.cseditCode); this.cstab.HorizontalScrollbarBarColor = true; this.cstab.HorizontalScrollbarHighlightOnWheel = false; this.cstab.HorizontalScrollbarSize = 10; @@ -181,9 +180,9 @@ this.cstab.VerticalScrollbarBarColor = true; this.cstab.VerticalScrollbarHighlightOnWheel = false; this.cstab.VerticalScrollbarSize = 10; - // + // // cseditref - // + // this.cseditref.ActiveControl = null; this.cseditref.Location = new System.Drawing.Point(3, 3); this.cseditref.Name = "cseditref"; @@ -192,9 +191,9 @@ this.cseditref.Text = "References"; this.cseditref.UseSelectable = true; this.cseditref.Click += new System.EventHandler(this.cseditref_Click); - // + // // cseditrun - // + // this.cseditrun.ActiveControl = null; this.cseditrun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cseditrun.Location = new System.Drawing.Point(711, 3); @@ -204,9 +203,9 @@ this.cseditrun.Text = "Run"; this.cseditrun.UseSelectable = true; this.cseditrun.Click += new System.EventHandler(this.cseditrun_Click); - // + // // cseditsave - // + // this.cseditsave.ActiveControl = null; this.cseditsave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cseditsave.Location = new System.Drawing.Point(630, 3); @@ -216,9 +215,9 @@ this.cseditsave.Text = "Save"; this.cseditsave.UseSelectable = true; this.cseditsave.Click += new System.EventHandler(this.cseditsave_Click); - // + // // cseditopen - // + // this.cseditopen.ActiveControl = null; this.cseditopen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cseditopen.Location = new System.Drawing.Point(549, 3); @@ -228,10 +227,10 @@ this.cseditopen.Text = "Open"; this.cseditopen.UseSelectable = true; this.cseditopen.Click += new System.EventHandler(this.cseditopen_Click); - // + // // csediterrorpanel - // - this.csediterrorpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + // + this.csediterrorpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.csediterrorpanel.AutoScroll = true; this.csediterrorpanel.Controls.Add(this.csediterrors); @@ -248,9 +247,9 @@ this.csediterrorpanel.VerticalScrollbarHighlightOnWheel = false; this.csediterrorpanel.VerticalScrollbarSize = 10; this.csediterrorpanel.Click += new System.EventHandler(this.metroPanel1_Click); - // + // // csediterrors - // + // this.csediterrors.AutoSize = true; this.csediterrors.Location = new System.Drawing.Point(3, 5); this.csediterrors.Name = "csediterrors"; @@ -258,27 +257,26 @@ this.csediterrors.TabIndex = 6; this.csediterrors.Text = "Ready"; this.csediterrors.Click += new System.EventHandler(this.metroLabel2_Click); - // + // // cseditcode - // - this.cseditcode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.cseditCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.cseditcode.BackColor = System.Drawing.Color.White; - this.cseditcode.ConvertTabsToSpaces = true; - this.cseditcode.IsIconBarVisible = true; - this.cseditcode.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow; - this.cseditcode.Location = new System.Drawing.Point(6, 47); - this.cseditcode.Name = "cseditcode"; - this.cseditcode.Highlighting = "C#"; - this.cseditcode.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.cseditcode.Size = new System.Drawing.Size(780, 291); - this.cseditcode.TabIndex = 9; - this.cseditcode.TabStop = false; - this.cseditcode.Text = resources.GetString("cseditcode.Text"); - // + this.cseditCode.BackColor = System.Drawing.Color.White; + this.cseditCode.ConvertTabsToSpaces = true; + this.cseditCode.IsIconBarVisible = true; + this.cseditCode.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow; + this.cseditCode.Location = new System.Drawing.Point(6, 47); + this.cseditCode.Name = "cseditcode"; + this.cseditCode.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.cseditCode.Size = new System.Drawing.Size(780, 291); + this.cseditCode.TabIndex = 9; + this.cseditCode.TabStop = false; + this.cseditCode.Text = resources.GetString("cseditcode.Text"); + // // htmltab - // + // this.htmltab.Controls.Add(this.htmlLoad); this.htmltab.Controls.Add(this.htmlSep); this.htmltab.HorizontalScrollbarBarColor = true; @@ -292,9 +290,9 @@ this.htmltab.VerticalScrollbarBarColor = true; this.htmltab.VerticalScrollbarHighlightOnWheel = false; this.htmltab.VerticalScrollbarSize = 10; - // + // // htmlLoad - // + // this.htmlLoad.ActiveControl = null; this.htmlLoad.Location = new System.Drawing.Point(145, 3); this.htmlLoad.Name = "htmlLoad"; @@ -303,19 +301,19 @@ this.htmlLoad.Text = "Load"; this.htmlLoad.UseSelectable = true; this.htmlLoad.Click += new System.EventHandler(this.htmlLoad_Click); - // + // // htmlSep - // - this.htmlSep.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.htmlSep.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.htmlSep.BackColor = System.Drawing.Color.White; this.htmlSep.ForeColor = System.Drawing.Color.White; this.htmlSep.Location = new System.Drawing.Point(3, 3); this.htmlSep.Name = "htmlSep"; - // + // // htmlSep.Panel1 - // + // this.htmlSep.Panel1.Controls.Add(this.htmlRefreshTile); this.htmlSep.Panel1.Controls.Add(this.htmlLiveLabel); this.htmlSep.Panel1.Controls.Add(this.htmlSave); @@ -323,18 +321,18 @@ this.htmlSep.Panel1.Controls.Add(this.livehider); this.htmlSep.Panel1.Controls.Add(this.htmlUpdateToggle); this.htmlSep.Panel1.Controls.Add(this.htmlText); - // + // // htmlSep.Panel2 - // + // this.htmlSep.Panel2.Controls.Add(this.htmlLoadIndicator); this.htmlSep.Panel2.Controls.Add(this.htmltitle); this.htmlSep.Panel2.Controls.Add(this.htmldisplay); this.htmlSep.Size = new System.Drawing.Size(783, 385); this.htmlSep.SplitterDistance = 338; this.htmlSep.TabIndex = 3; - // + // // htmlRefreshTile - // + // this.htmlRefreshTile.ActiveControl = null; this.htmlRefreshTile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.htmlRefreshTile.Location = new System.Drawing.Point(212, 0); @@ -344,9 +342,9 @@ this.htmlRefreshTile.Text = "Refresh"; this.htmlRefreshTile.UseSelectable = true; this.htmlRefreshTile.Click += new System.EventHandler(this.htmlRefreshTile_Click); - // + // // htmlLiveLabel - // + // this.htmlLiveLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.htmlLiveLabel.AutoSize = true; this.htmlLiveLabel.Location = new System.Drawing.Point(304, 19); @@ -354,9 +352,9 @@ this.htmlLiveLabel.Size = new System.Drawing.Size(31, 19); this.htmlLiveLabel.TabIndex = 3; this.htmlLiveLabel.Text = "Live"; - // + // // htmlSave - // + // this.htmlSave.ActiveControl = null; this.htmlSave.Location = new System.Drawing.Point(72, 0); this.htmlSave.Name = "htmlSave"; @@ -365,9 +363,9 @@ this.htmlSave.Text = "Save"; this.htmlSave.UseSelectable = true; this.htmlSave.Click += new System.EventHandler(this.htmlSave_Click); - // + // // htmlOptionsTile - // + // this.htmlOptionsTile.ActiveControl = null; this.htmlOptionsTile.Location = new System.Drawing.Point(0, 0); this.htmlOptionsTile.Name = "htmlOptionsTile"; @@ -378,9 +376,9 @@ this.htmlOptionsTile.UseSelectable = true; this.htmlOptionsTile.Click += new System.EventHandler(this.htmlOptionsTile_Click); this.htmlOptionsTile.MouseEnter += new System.EventHandler(this.htmlOptionsTile_MouseEnter); - // + // // livehider - // + // this.livehider.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.livehider.HorizontalScrollbarBarColor = true; this.livehider.HorizontalScrollbarHighlightOnWheel = false; @@ -392,9 +390,9 @@ this.livehider.VerticalScrollbarBarColor = true; this.livehider.VerticalScrollbarHighlightOnWheel = false; this.livehider.VerticalScrollbarSize = 10; - // + // // htmlUpdateToggle - // + // this.htmlUpdateToggle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.htmlUpdateToggle.AutoSize = true; this.htmlUpdateToggle.Checked = true; @@ -406,11 +404,11 @@ this.htmlUpdateToggle.Text = "An"; this.htmlUpdateToggle.UseSelectable = true; this.htmlUpdateToggle.CheckedChanged += new System.EventHandler(this.metroToggle2_CheckedChanged); - // + // // htmlText - // - this.htmlText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.htmlText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.htmlText.ConvertTabsToSpaces = true; this.htmlText.Highlighting = "HTML"; @@ -423,9 +421,9 @@ this.htmlText.Text = "\r\n
\r\n