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 Title\r\n\r\n\r\n Example T" + "ext\r\n\r\n"; this.htmlText.TextChanged += new System.EventHandler(this.HtmlText_TextChanged_1); - // + // // htmlLoadIndicator - // + // this.htmlLoadIndicator.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.htmlLoadIndicator.Location = new System.Drawing.Point(422, 3); this.htmlLoadIndicator.Maximum = 100; @@ -434,20 +432,20 @@ this.htmlLoadIndicator.TabIndex = 3; this.htmlLoadIndicator.UseSelectable = true; this.htmlLoadIndicator.Visible = false; - // + // // htmltitle - // + // this.htmltitle.AutoSize = true; this.htmltitle.Location = new System.Drawing.Point(3, 3); this.htmltitle.Name = "htmltitle"; this.htmltitle.Size = new System.Drawing.Size(33, 19); this.htmltitle.TabIndex = 3; this.htmltitle.Text = "Title"; - // + // // htmldisplay - // - this.htmldisplay.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.htmldisplay.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.htmldisplay.Location = new System.Drawing.Point(3, 25); this.htmldisplay.MinimumSize = new System.Drawing.Size(20, 20); @@ -456,9 +454,9 @@ this.htmldisplay.TabIndex = 2; this.htmldisplay.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.htmldisplay_DocumentCompleted); this.htmldisplay.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.htmldisplay_Navigating); - // + // // pythontab - // + // this.pythontab.Controls.Add(this.pythonCode); this.pythontab.Controls.Add(this.pythonSave); this.pythontab.Controls.Add(this.pythonRun); @@ -470,15 +468,15 @@ this.pythontab.Name = "pythontab"; this.pythontab.Size = new System.Drawing.Size(789, 391); this.pythontab.TabIndex = 3; - this.pythontab.Text = "Python"; + this.pythontab.Text = "IronPython"; this.pythontab.VerticalScrollbarBarColor = true; this.pythontab.VerticalScrollbarHighlightOnWheel = false; this.pythontab.VerticalScrollbarSize = 10; - // + // // pythonCode - // - this.pythonCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + // + this.pythonCode.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.pythonCode.ConvertTabsToSpaces = true; this.pythonCode.Highlighting = "Python"; @@ -488,10 +486,10 @@ this.pythonCode.Name = "pythonCode"; this.pythonCode.Size = new System.Drawing.Size(783, 341); this.pythonCode.TabIndex = 11; - this.pythonCode.Text = "import time\r\nprint(\"Hello world!\")\r\ntime.sleep(3)"; - // + this.pythonCode.Text = "print(\"Hello world!\")"; + // // pythonSave - // + // this.pythonSave.ActiveControl = null; this.pythonSave.Location = new System.Drawing.Point(84, 3); this.pythonSave.Name = "pythonSave"; @@ -500,9 +498,9 @@ this.pythonSave.Text = "Save"; this.pythonSave.UseSelectable = true; this.pythonSave.Click += new System.EventHandler(this.pythonSave_Click); - // + // // pythonRun - // + // this.pythonRun.ActiveControl = null; this.pythonRun.Location = new System.Drawing.Point(165, 3); this.pythonRun.Name = "pythonRun"; @@ -511,9 +509,9 @@ this.pythonRun.Text = "Run"; this.pythonRun.UseSelectable = true; this.pythonRun.Click += new System.EventHandler(this.pythonRun_Click); - // + // // pythonOpen - // + // this.pythonOpen.ActiveControl = null; this.pythonOpen.Location = new System.Drawing.Point(3, 3); this.pythonOpen.Name = "pythonOpen"; @@ -522,9 +520,9 @@ this.pythonOpen.Text = "Open"; this.pythonOpen.UseSelectable = true; this.pythonOpen.Click += new System.EventHandler(this.pythonOpen_Click); - // + // // infotab - // + // this.infotab.Controls.Add(this.infoPanel); this.infotab.HorizontalScrollbarBarColor = true; this.infotab.HorizontalScrollbarHighlightOnWheel = false; @@ -537,18 +535,18 @@ this.infotab.VerticalScrollbarBarColor = true; this.infotab.VerticalScrollbarHighlightOnWheel = false; this.infotab.VerticalScrollbarSize = 10; - // + // // infoPanel - // + // this.infoPanel.AutoSize = true; this.infoPanel.Location = new System.Drawing.Point(3, 0); this.infoPanel.Name = "infoPanel"; this.infoPanel.Size = new System.Drawing.Size(532, 95); this.infoPanel.TabIndex = 2; this.infoPanel.Text = resources.GetString("infoPanel.Text"); - // + // // nightmodeToggle - // + // this.nightmodeToggle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.nightmodeToggle.AutoSize = true; this.nightmodeToggle.FontWeight = MetroFramework.MetroLinkWeight.Light; @@ -561,9 +559,9 @@ this.nightmodeToggle.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.nightmodeToggle.UseSelectable = true; this.nightmodeToggle.CheckedChanged += new System.EventHandler(this.metroToggle1_CheckedChanged); - // + // // nmtext - // + // this.nmtext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.nmtext.AutoSize = true; this.nmtext.Location = new System.Drawing.Point(740, 60); @@ -571,25 +569,20 @@ this.nmtext.Size = new System.Drawing.Size(80, 19); this.nmtext.TabIndex = 2; this.nmtext.Text = "Night Mode"; - // + // // csSaveFileDialog - // + // this.csSaveFileDialog.DefaultExt = "dat"; this.csSaveFileDialog.FileName = "Project.dat"; this.csSaveFileDialog.Filter = "Data File|*.dat|Binary|*.exe"; - // + // // csOpenFileDialog - // + // this.csOpenFileDialog.DefaultExt = "dat"; this.csOpenFileDialog.Filter = "Data File|*.dat|Binary|*.exe"; - // - // cseditexecutor - // - this.cseditexecutor.DoWork += new System.ComponentModel.DoWorkEventHandler(this.cseditexecutor_DoWork); - this.cseditexecutor.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.cseditexecutor_RunWorkerCompleted); - // + // // htmlOptionsMenu - // + // this.htmlOptionsMenu.DropShadowEnabled = false; this.htmlOptionsMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.hTMLToolStripMenuItem, @@ -598,9 +591,9 @@ this.pHPToolStripMenuItem}); this.htmlOptionsMenu.Name = "metroContextMenu1"; this.htmlOptionsMenu.Size = new System.Drawing.Size(127, 92); - // + // // hTMLToolStripMenuItem - // + // this.hTMLToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.hTMLStructureSetupToolStripMenuItem, this.linkToolStripMenuItem, @@ -612,37 +605,37 @@ this.hTMLToolStripMenuItem.Name = "hTMLToolStripMenuItem"; this.hTMLToolStripMenuItem.Size = new System.Drawing.Size(126, 22); this.hTMLToolStripMenuItem.Text = "HTML"; - // + // // hTMLStructureSetupToolStripMenuItem - // + // this.hTMLStructureSetupToolStripMenuItem.Name = "hTMLStructureSetupToolStripMenuItem"; this.hTMLStructureSetupToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.hTMLStructureSetupToolStripMenuItem.Text = "HTML Structure Setup"; this.hTMLStructureSetupToolStripMenuItem.Click += new System.EventHandler(this.hTMLStructureSetupToolStripMenuItem_Click); - // + // // linkToolStripMenuItem - // + // this.linkToolStripMenuItem.Name = "linkToolStripMenuItem"; this.linkToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.linkToolStripMenuItem.Text = "Link"; this.linkToolStripMenuItem.Click += new System.EventHandler(this.linkToolStripMenuItem_Click); - // + // // imageToolStripMenuItem - // + // this.imageToolStripMenuItem.Name = "imageToolStripMenuItem"; this.imageToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.imageToolStripMenuItem.Text = "Image"; this.imageToolStripMenuItem.Click += new System.EventHandler(this.imageToolStripMenuItem_Click); - // + // // centercenterToolStripMenuItem - // + // this.centercenterToolStripMenuItem.Name = "centercenterToolStripMenuItem"; this.centercenterToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.centercenterToolStripMenuItem.Text = "Center
"; this.centercenterToolStripMenuItem.Click += new System.EventHandler(this.centercenterToolStripMenuItem_Click); - // + // // textToolStripMenuItem - // + // this.textToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.headingsToolStripMenuItem, this.paragraphpToolStripMenuItem, @@ -655,9 +648,9 @@ this.textToolStripMenuItem.Name = "textToolStripMenuItem"; this.textToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.textToolStripMenuItem.Text = "Text"; - // + // // headingsToolStripMenuItem - // + // this.headingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.heading1h1ToolStripMenuItem, this.heading2h2ToolStripMenuItem, @@ -668,100 +661,100 @@ this.headingsToolStripMenuItem.Name = "headingsToolStripMenuItem"; this.headingsToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.headingsToolStripMenuItem.Text = "Headings"; - // + // // heading1h1ToolStripMenuItem - // + // this.heading1h1ToolStripMenuItem.Name = "heading1h1ToolStripMenuItem"; this.heading1h1ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading1h1ToolStripMenuItem.Text = "Heading 1

"; this.heading1h1ToolStripMenuItem.Click += new System.EventHandler(this.heading1h1ToolStripMenuItem_Click); - // + // // heading2h2ToolStripMenuItem - // + // this.heading2h2ToolStripMenuItem.Name = "heading2h2ToolStripMenuItem"; this.heading2h2ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading2h2ToolStripMenuItem.Text = "Heading 2

"; this.heading2h2ToolStripMenuItem.Click += new System.EventHandler(this.heading2h2ToolStripMenuItem_Click); - // + // // heading3h3ToolStripMenuItem - // + // this.heading3h3ToolStripMenuItem.Name = "heading3h3ToolStripMenuItem"; this.heading3h3ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading3h3ToolStripMenuItem.Text = "Heading 3

"; this.heading3h3ToolStripMenuItem.Click += new System.EventHandler(this.heading3h3ToolStripMenuItem_Click); - // + // // heading4h4ToolStripMenuItem - // + // this.heading4h4ToolStripMenuItem.Name = "heading4h4ToolStripMenuItem"; this.heading4h4ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading4h4ToolStripMenuItem.Text = "Heading 4

"; this.heading4h4ToolStripMenuItem.Click += new System.EventHandler(this.heading4h4ToolStripMenuItem_Click); - // + // // heading5h5ToolStripMenuItem - // + // this.heading5h5ToolStripMenuItem.Name = "heading5h5ToolStripMenuItem"; this.heading5h5ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading5h5ToolStripMenuItem.Text = "Heading 5

"; this.heading5h5ToolStripMenuItem.Click += new System.EventHandler(this.heading5h5ToolStripMenuItem_Click); - // + // // heading6h6ToolStripMenuItem - // + // this.heading6h6ToolStripMenuItem.Name = "heading6h6ToolStripMenuItem"; this.heading6h6ToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.heading6h6ToolStripMenuItem.Text = "Heading 6
"; this.heading6h6ToolStripMenuItem.Click += new System.EventHandler(this.heading6h6ToolStripMenuItem_Click); - // + // // paragraphpToolStripMenuItem - // + // this.paragraphpToolStripMenuItem.Name = "paragraphpToolStripMenuItem"; this.paragraphpToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.paragraphpToolStripMenuItem.Text = "Paragraph

"; this.paragraphpToolStripMenuItem.Click += new System.EventHandler(this.paragraphpToolStripMenuItem_Click); - // + // // boldbToolStripMenuItem - // + // this.boldbToolStripMenuItem.Name = "boldbToolStripMenuItem"; this.boldbToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.boldbToolStripMenuItem.Text = "Bold "; this.boldbToolStripMenuItem.Click += new System.EventHandler(this.boldbToolStripMenuItem_Click); - // + // // underlineuToolStripMenuItem - // + // this.underlineuToolStripMenuItem.Name = "underlineuToolStripMenuItem"; this.underlineuToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.underlineuToolStripMenuItem.Text = "Underline "; this.underlineuToolStripMenuItem.Click += new System.EventHandler(this.underlineuToolStripMenuItem_Click); - // + // // italiciToolStripMenuItem - // + // this.italiciToolStripMenuItem.Name = "italiciToolStripMenuItem"; this.italiciToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.italiciToolStripMenuItem.Text = "Italic "; this.italiciToolStripMenuItem.Click += new System.EventHandler(this.italiciToolStripMenuItem_Click); - // + // // deleteddelToolStripMenuItem - // + // this.deleteddelToolStripMenuItem.Name = "deleteddelToolStripMenuItem"; this.deleteddelToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.deleteddelToolStripMenuItem.Text = "Deleted "; this.deleteddelToolStripMenuItem.Click += new System.EventHandler(this.deleteddelToolStripMenuItem_Click); - // + // // subscriptedSubToolStripMenuItem - // + // this.subscriptedSubToolStripMenuItem.Name = "subscriptedSubToolStripMenuItem"; this.subscriptedSubToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.subscriptedSubToolStripMenuItem.Text = "subscripted "; this.subscriptedSubToolStripMenuItem.Click += new System.EventHandler(this.subscriptedSubToolStripMenuItem_Click); - // + // // superscriptedsupToolStripMenuItem - // + // this.superscriptedsupToolStripMenuItem.Name = "superscriptedsupToolStripMenuItem"; this.superscriptedsupToolStripMenuItem.Size = new System.Drawing.Size(183, 22); this.superscriptedsupToolStripMenuItem.Text = "superscripted "; this.superscriptedsupToolStripMenuItem.Click += new System.EventHandler(this.superscriptedsupToolStripMenuItem_Click); - // + // // tableToolStripMenuItem - // + // this.tableToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tableFormatSetupToolStripMenuItem, this.tableHeadingthToolStripMenuItem, @@ -770,37 +763,37 @@ this.tableToolStripMenuItem.Name = "tableToolStripMenuItem"; this.tableToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.tableToolStripMenuItem.Text = "Table"; - // + // // tableFormatSetupToolStripMenuItem - // + // this.tableFormatSetupToolStripMenuItem.Name = "tableFormatSetupToolStripMenuItem"; this.tableFormatSetupToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.tableFormatSetupToolStripMenuItem.Text = "Table Format Setup"; this.tableFormatSetupToolStripMenuItem.Click += new System.EventHandler(this.tableFormatSetupToolStripMenuItem_Click); - // + // // tableHeadingthToolStripMenuItem - // + // this.tableHeadingthToolStripMenuItem.Name = "tableHeadingthToolStripMenuItem"; this.tableHeadingthToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.tableHeadingthToolStripMenuItem.Text = "Table Heading "; this.tableHeadingthToolStripMenuItem.Click += new System.EventHandler(this.tableHeadingthToolStripMenuItem_Click); - // + // // newRowtrToolStripMenuItem - // + // this.newRowtrToolStripMenuItem.Name = "newRowtrToolStripMenuItem"; this.newRowtrToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.newRowtrToolStripMenuItem.Text = "New Row "; this.newRowtrToolStripMenuItem.Click += new System.EventHandler(this.newRowtrToolStripMenuItem_Click); - // + // // newHorizontalItemtdToolStripMenuItem - // + // this.newHorizontalItemtdToolStripMenuItem.Name = "newHorizontalItemtdToolStripMenuItem"; this.newHorizontalItemtdToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.newHorizontalItemtdToolStripMenuItem.Text = "New Horizontal Item "; this.newHorizontalItemtdToolStripMenuItem.Click += new System.EventHandler(this.newHorizontalItemtdToolStripMenuItem_Click); - // + // // listsToolStripMenuItem - // + // this.listsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.orderedListSetupolToolStripMenuItem, this.unorderedListSetupulToolStripMenuItem, @@ -808,30 +801,30 @@ this.listsToolStripMenuItem.Name = "listsToolStripMenuItem"; this.listsToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.listsToolStripMenuItem.Text = "Lists"; - // + // // orderedListSetupolToolStripMenuItem - // + // this.orderedListSetupolToolStripMenuItem.Name = "orderedListSetupolToolStripMenuItem"; this.orderedListSetupolToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.orderedListSetupolToolStripMenuItem.Text = "Ordered List Setup

    "; this.orderedListSetupolToolStripMenuItem.Click += new System.EventHandler(this.orderedListSetupolToolStripMenuItem_Click); - // + // // unorderedListSetupulToolStripMenuItem - // + // this.unorderedListSetupulToolStripMenuItem.Name = "unorderedListSetupulToolStripMenuItem"; this.unorderedListSetupulToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.unorderedListSetupulToolStripMenuItem.Text = "Unordered List Setup
      "; this.unorderedListSetupulToolStripMenuItem.Click += new System.EventHandler(this.unorderedListSetupulToolStripMenuItem_Click); - // + // // listItemliToolStripMenuItem - // + // this.listItemliToolStripMenuItem.Name = "listItemliToolStripMenuItem"; this.listItemliToolStripMenuItem.Size = new System.Drawing.Size(213, 22); this.listItemliToolStripMenuItem.Text = "List Item
    • "; this.listItemliToolStripMenuItem.Click += new System.EventHandler(this.listItemliToolStripMenuItem_Click); - // + // // javaScriptToolStripMenuItem - // + // this.javaScriptToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.javaStructureSetupToolStripMenuItem, this.functionToolStripMenuItem, @@ -842,51 +835,51 @@ this.javaScriptToolStripMenuItem.Name = "javaScriptToolStripMenuItem"; this.javaScriptToolStripMenuItem.Size = new System.Drawing.Size(126, 22); this.javaScriptToolStripMenuItem.Text = "JavaScript"; - // + // // javaStructureSetupToolStripMenuItem - // + // this.javaStructureSetupToolStripMenuItem.Name = "javaStructureSetupToolStripMenuItem"; this.javaStructureSetupToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.javaStructureSetupToolStripMenuItem.Text = "Java Structure Setup"; this.javaStructureSetupToolStripMenuItem.Click += new System.EventHandler(this.javaStructureSetupToolStripMenuItem_Click); - // + // // functionToolStripMenuItem - // + // this.functionToolStripMenuItem.Name = "functionToolStripMenuItem"; this.functionToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.functionToolStripMenuItem.Text = "Function"; this.functionToolStripMenuItem.Click += new System.EventHandler(this.functionToolStripMenuItem_Click); - // + // // textToolStripMenuItem1 - // + // this.textToolStripMenuItem1.Name = "textToolStripMenuItem1"; this.textToolStripMenuItem1.Size = new System.Drawing.Size(180, 22); this.textToolStripMenuItem1.Text = "Text"; this.textToolStripMenuItem1.Click += new System.EventHandler(this.textToolStripMenuItem1_Click); - // + // // alertBoxToolStripMenuItem - // + // this.alertBoxToolStripMenuItem.Name = "alertBoxToolStripMenuItem"; this.alertBoxToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.alertBoxToolStripMenuItem.Text = "Alert Box"; this.alertBoxToolStripMenuItem.Click += new System.EventHandler(this.alertBoxToolStripMenuItem_Click); - // + // // timeoutToolStripMenuItem - // + // this.timeoutToolStripMenuItem.Name = "timeoutToolStripMenuItem"; this.timeoutToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.timeoutToolStripMenuItem.Text = "Timeout"; this.timeoutToolStripMenuItem.Click += new System.EventHandler(this.timeoutToolStripMenuItem_Click); - // + // // randomNumberToolStripMenuItem - // + // this.randomNumberToolStripMenuItem.Name = "randomNumberToolStripMenuItem"; this.randomNumberToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.randomNumberToolStripMenuItem.Text = "Random Number"; this.randomNumberToolStripMenuItem.Click += new System.EventHandler(this.randomNumberToolStripMenuItem_Click); - // + // // cSSToolStripMenuItem - // + // this.cSSToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cSSStructureSetupToolStripMenuItem, this.cSSCustomizeTagToolStripMenuItem, @@ -894,32 +887,32 @@ this.cSSToolStripMenuItem.Name = "cSSToolStripMenuItem"; this.cSSToolStripMenuItem.Size = new System.Drawing.Size(126, 22); this.cSSToolStripMenuItem.Text = "CSS"; - // + // // cSSStructureSetupToolStripMenuItem - // + // this.cSSStructureSetupToolStripMenuItem.Name = "cSSStructureSetupToolStripMenuItem"; this.cSSStructureSetupToolStripMenuItem.Size = new System.Drawing.Size(286, 22); this.cSSStructureSetupToolStripMenuItem.Text = "CSS Structure Setup (use inside )"; this.cSSStructureSetupToolStripMenuItem.Click += new System.EventHandler(this.cSSStructureSetupToolStripMenuItem_Click); - // + // // cSSCustomizeTagToolStripMenuItem - // + // this.cSSCustomizeTagToolStripMenuItem.Name = "cSSCustomizeTagToolStripMenuItem"; this.cSSCustomizeTagToolStripMenuItem.Size = new System.Drawing.Size(286, 22); this.cSSCustomizeTagToolStripMenuItem.Text = "CSS Customize Tag"; this.cSSCustomizeTagToolStripMenuItem.Click += new System.EventHandler(this.cSSCustomizeTagToolStripMenuItem_Click); - // + // // cSSCustomTagPropertiesToolStripMenuItem - // + // this.cSSCustomTagPropertiesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.backgroundToolStripMenuItem, this.textToolStripMenuItem2}); this.cSSCustomTagPropertiesToolStripMenuItem.Name = "cSSCustomTagPropertiesToolStripMenuItem"; this.cSSCustomTagPropertiesToolStripMenuItem.Size = new System.Drawing.Size(286, 22); this.cSSCustomTagPropertiesToolStripMenuItem.Text = "CSS Custom Tag Properties"; - // + // // backgroundToolStripMenuItem - // + // this.backgroundToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.backgroundAttachmentToolStripMenuItem, this.backgroundColorToolStripMenuItem, @@ -929,44 +922,44 @@ this.backgroundToolStripMenuItem.Name = "backgroundToolStripMenuItem"; this.backgroundToolStripMenuItem.Size = new System.Drawing.Size(138, 22); this.backgroundToolStripMenuItem.Text = "Background"; - // + // // backgroundAttachmentToolStripMenuItem - // + // this.backgroundAttachmentToolStripMenuItem.Name = "backgroundAttachmentToolStripMenuItem"; this.backgroundAttachmentToolStripMenuItem.Size = new System.Drawing.Size(289, 22); this.backgroundAttachmentToolStripMenuItem.Text = "Background Attachment (Fixed or Scroll)"; this.backgroundAttachmentToolStripMenuItem.Click += new System.EventHandler(this.backgroundAttachmentToolStripMenuItem_Click); - // + // // backgroundColorToolStripMenuItem - // + // this.backgroundColorToolStripMenuItem.Name = "backgroundColorToolStripMenuItem"; this.backgroundColorToolStripMenuItem.Size = new System.Drawing.Size(289, 22); this.backgroundColorToolStripMenuItem.Text = "Background Color"; this.backgroundColorToolStripMenuItem.Click += new System.EventHandler(this.backgroundColorToolStripMenuItem_Click); - // + // // backgroundImageToolStripMenuItem - // + // this.backgroundImageToolStripMenuItem.Name = "backgroundImageToolStripMenuItem"; this.backgroundImageToolStripMenuItem.Size = new System.Drawing.Size(289, 22); this.backgroundImageToolStripMenuItem.Text = "Background Image"; this.backgroundImageToolStripMenuItem.Click += new System.EventHandler(this.backgroundImageToolStripMenuItem_Click); - // + // // backgroundPositionToolStripMenuItem - // + // this.backgroundPositionToolStripMenuItem.Name = "backgroundPositionToolStripMenuItem"; this.backgroundPositionToolStripMenuItem.Size = new System.Drawing.Size(289, 22); this.backgroundPositionToolStripMenuItem.Text = "Background Position"; this.backgroundPositionToolStripMenuItem.Click += new System.EventHandler(this.backgroundPositionToolStripMenuItem_Click); - // + // // backgroundRepeatToolStripMenuItem - // + // this.backgroundRepeatToolStripMenuItem.Name = "backgroundRepeatToolStripMenuItem"; this.backgroundRepeatToolStripMenuItem.Size = new System.Drawing.Size(289, 22); this.backgroundRepeatToolStripMenuItem.Text = "Background Repeat ((no-)repeat)"; this.backgroundRepeatToolStripMenuItem.Click += new System.EventHandler(this.backgroundRepeatToolStripMenuItem_Click); - // + // // textToolStripMenuItem2 - // + // this.textToolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fontToolStripMenuItem, this.sizeToolStripMenuItem, @@ -984,133 +977,133 @@ this.textToolStripMenuItem2.Name = "textToolStripMenuItem2"; this.textToolStripMenuItem2.Size = new System.Drawing.Size(138, 22); this.textToolStripMenuItem2.Text = "Text"; - // + // // fontToolStripMenuItem - // + // this.fontToolStripMenuItem.Name = "fontToolStripMenuItem"; this.fontToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.fontToolStripMenuItem.Text = "Font"; this.fontToolStripMenuItem.Click += new System.EventHandler(this.fontToolStripMenuItem_Click); - // + // // sizeToolStripMenuItem - // + // this.sizeToolStripMenuItem.Name = "sizeToolStripMenuItem"; this.sizeToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.sizeToolStripMenuItem.Text = "Size"; this.sizeToolStripMenuItem.Click += new System.EventHandler(this.sizeToolStripMenuItem_Click); - // + // // weightToolStripMenuItem - // + // this.weightToolStripMenuItem.Name = "weightToolStripMenuItem"; this.weightToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.weightToolStripMenuItem.Text = "Weight"; this.weightToolStripMenuItem.Click += new System.EventHandler(this.weightToolStripMenuItem_Click); - // + // // colorToolStripMenuItem - // + // this.colorToolStripMenuItem.Name = "colorToolStripMenuItem"; this.colorToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.colorToolStripMenuItem.Text = "Color"; this.colorToolStripMenuItem.Click += new System.EventHandler(this.colorToolStripMenuItem_Click); - // + // // directionToolStripMenuItem - // + // this.directionToolStripMenuItem.Name = "directionToolStripMenuItem"; this.directionToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.directionToolStripMenuItem.Text = " Direction (ltr/rtl)"; this.directionToolStripMenuItem.Click += new System.EventHandler(this.directionToolStripMenuItem_Click); - // + // // lineHeightToolStripMenuItem - // + // this.lineHeightToolStripMenuItem.Name = "lineHeightToolStripMenuItem"; this.lineHeightToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.lineHeightToolStripMenuItem.Text = "Line Height"; this.lineHeightToolStripMenuItem.Click += new System.EventHandler(this.lineHeightToolStripMenuItem_Click); - // + // // letterSpacingToolStripMenuItem - // + // this.letterSpacingToolStripMenuItem.Name = "letterSpacingToolStripMenuItem"; this.letterSpacingToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.letterSpacingToolStripMenuItem.Text = "Letter Spacing (eg.: 50px)"; this.letterSpacingToolStripMenuItem.Click += new System.EventHandler(this.letterSpacingToolStripMenuItem_Click); - // + // // alignToolStripMenuItem - // + // this.alignToolStripMenuItem.Name = "alignToolStripMenuItem"; this.alignToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.alignToolStripMenuItem.Text = "Align"; this.alignToolStripMenuItem.Click += new System.EventHandler(this.alignToolStripMenuItem_Click); - // + // // decorationToolStripMenuItem - // + // this.decorationToolStripMenuItem.Name = "decorationToolStripMenuItem"; this.decorationToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.decorationToolStripMenuItem.Text = "Decoration"; this.decorationToolStripMenuItem.Click += new System.EventHandler(this.decorationToolStripMenuItem_Click); - // + // // indentToolStripMenuItem - // + // this.indentToolStripMenuItem.Name = "indentToolStripMenuItem"; this.indentToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.indentToolStripMenuItem.Text = "Indent (eg.: 15px)"; this.indentToolStripMenuItem.Click += new System.EventHandler(this.indentToolStripMenuItem_Click); - // + // // shadowToolStripMenuItem - // + // this.shadowToolStripMenuItem.Name = "shadowToolStripMenuItem"; this.shadowToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.shadowToolStripMenuItem.Text = "Shadow"; this.shadowToolStripMenuItem.Click += new System.EventHandler(this.shadowToolStripMenuItem_Click); - // + // // transformToolStripMenuItem - // + // this.transformToolStripMenuItem.Name = "transformToolStripMenuItem"; this.transformToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.transformToolStripMenuItem.Text = "Transform"; this.transformToolStripMenuItem.Click += new System.EventHandler(this.transformToolStripMenuItem_Click); - // + // // wordspacingToolStripMenuItem - // + // this.wordspacingToolStripMenuItem.Name = "wordspacingToolStripMenuItem"; this.wordspacingToolStripMenuItem.Size = new System.Drawing.Size(207, 22); this.wordspacingToolStripMenuItem.Text = "Wordspacing (eg: 2px)"; this.wordspacingToolStripMenuItem.Click += new System.EventHandler(this.wordspacingToolStripMenuItem_Click); - // + // // pHPToolStripMenuItem - // + // this.pHPToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.pHPStructureSetupToolStripMenuItem, this.textToolStripMenuItem3}); this.pHPToolStripMenuItem.Name = "pHPToolStripMenuItem"; this.pHPToolStripMenuItem.Size = new System.Drawing.Size(126, 22); this.pHPToolStripMenuItem.Text = "PHP"; - // + // // pHPStructureSetupToolStripMenuItem - // + // this.pHPStructureSetupToolStripMenuItem.Name = "pHPStructureSetupToolStripMenuItem"; this.pHPStructureSetupToolStripMenuItem.Size = new System.Drawing.Size(181, 22); this.pHPStructureSetupToolStripMenuItem.Text = "PHP Structure Setup"; this.pHPStructureSetupToolStripMenuItem.Click += new System.EventHandler(this.pHPStructureSetupToolStripMenuItem_Click); - // + // // textToolStripMenuItem3 - // + // this.textToolStripMenuItem3.Name = "textToolStripMenuItem3"; this.textToolStripMenuItem3.Size = new System.Drawing.Size(181, 22); this.textToolStripMenuItem3.Text = "Text"; this.textToolStripMenuItem3.Click += new System.EventHandler(this.textToolStripMenuItem3_Click); - // + // // htmlSaveFileDialog - // + // this.htmlSaveFileDialog.FileName = "Unnamed.html"; this.htmlSaveFileDialog.Filter = "HTML files (*.html)|*html|htm file (*.htm)|*.htm"; - // + // // htmlOpenFileDialog - // + // this.htmlOpenFileDialog.DefaultExt = "html"; this.htmlOpenFileDialog.Filter = "HTML files (*.html)|*html|htm file (*.htm)|*.htm"; - // + // // nightmodehide - // + // this.nightmodehide.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.nightmodehide.HorizontalScrollbarBarColor = true; this.nightmodehide.HorizontalScrollbarHighlightOnWheel = false; @@ -1122,17 +1115,17 @@ this.nightmodehide.VerticalScrollbarBarColor = true; this.nightmodehide.VerticalScrollbarHighlightOnWheel = false; this.nightmodehide.VerticalScrollbarSize = 10; - // + // // pythonOpenFileDialog - // + // this.pythonOpenFileDialog.Filter = "Python Files|*.py"; - // + // // pythonSaveFileDialog - // + // this.pythonSaveFileDialog.Filter = "Python Files|*.py"; - // + // // MainForm - // + // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(843, 519); @@ -1175,7 +1168,6 @@ private System.Windows.Forms.OpenFileDialog csOpenFileDialog; private MetroFramework.Controls.MetroTabPage htmltab; private MetroFramework.Controls.MetroLabel infoPanel; - private System.ComponentModel.BackgroundWorker cseditexecutor; private System.Windows.Forms.SplitContainer htmlSep; private System.Windows.Forms.WebBrowser htmldisplay; private MetroFramework.Controls.MetroLabel htmltitle; @@ -1266,7 +1258,7 @@ private MetroFramework.Controls.MetroTile cseditopen; private MetroFramework.Controls.MetroPanel csediterrorpanel; private MetroFramework.Controls.MetroLabel csediterrors; - private ICSharpCode.TextEditor.TextEditorControl cseditcode; + private ICSharpCode.TextEditor.TextEditorControl cseditCode; private ICSharpCode.TextEditor.TextEditorControl htmlText; private ICSharpCode.TextEditor.TextEditorControl pythonCode; } diff --git a/cashew/MainForm.cs b/cashew/MainForm.cs index 1d93bff..698323b 100644 --- a/cashew/MainForm.cs +++ b/cashew/MainForm.cs @@ -1,4 +1,5 @@ -using ICSharpCode.Decompiler; +using CC_Functions.Misc; +using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.CSharp; using ICSharpCode.TextEditor.Document; using IronPython.Hosting; @@ -18,6 +19,7 @@ using System.Linq; using System.Reflection; using System.Runtime.Serialization.Formatters.Binary; using System.Text; +using System.Threading; using System.Windows.Forms; #pragma warning disable IDE1006 @@ -41,7 +43,7 @@ namespace cashew InitializeComponent(); metroControls = new IMetroControl[] { nmtext, languageTabControl, cstab, infotab, nightmodeToggle, cseditopen, cseditrun, cseditsave, csediterrorpanel, csediterrors, cseditref, infoPanel, htmltab, htmltitle, htmlOptionsTile, htmlOptionsMenu, htmlRefreshTile, htmlLoad, htmlSave, htmlLoadIndicator, htmlUpdateToggle, htmlLiveLabel, livehider, nightmodehide, pythontab, pythonSave, pythonRun, pythonOpen}; - normalControls = new Control[] { htmlSep, htmldisplay, cseditcode, pythonCode, htmlText }; + normalControls = new Control[] { htmlSep, htmldisplay, cseditCode, pythonCode, htmlText }; menuItems = new ToolStripMenuItem[] { hTMLToolStripMenuItem, javaScriptToolStripMenuItem, cSSToolStripMenuItem, pHPToolStripMenuItem, hTMLStructureSetupToolStripMenuItem, javaStructureSetupToolStripMenuItem, cSSStructureSetupToolStripMenuItem, pHPStructureSetupToolStripMenuItem, linkToolStripMenuItem, imageToolStripMenuItem, textToolStripMenuItem, tableToolStripMenuItem, listsToolStripMenuItem, functionToolStripMenuItem, textToolStripMenuItem1, alertBoxToolStripMenuItem, timeoutToolStripMenuItem, randomNumberToolStripMenuItem, cSSCustomizeTagToolStripMenuItem, cSSCustomTagPropertiesToolStripMenuItem, textToolStripMenuItem3, headingsToolStripMenuItem, boldbToolStripMenuItem, underlineuToolStripMenuItem, italiciToolStripMenuItem, deleteddelToolStripMenuItem, subscriptedSubToolStripMenuItem, superscriptedsupToolStripMenuItem, tableFormatSetupToolStripMenuItem, tableHeadingthToolStripMenuItem, newHorizontalItemtdToolStripMenuItem, newRowtrToolStripMenuItem, orderedListSetupolToolStripMenuItem, unorderedListSetupulToolStripMenuItem, listItemliToolStripMenuItem, heading1h1ToolStripMenuItem, @@ -53,6 +55,9 @@ namespace cashew metroToggle1_CheckedChanged(this, new EventArgs()); languageTabControl.SelectedTab = infotab; splash.Hide(); + cseditCode.SetHighlighting("C#"); + pythonCode.SetHighlighting("Python"); + htmlText.SetHighlighting("HTML"); } private void MAIN_Load(object sender, EventArgs e) => BringToFront(); @@ -107,8 +112,7 @@ namespace cashew #region CS - private MethodInfo script; - + Thread script; private void metroLabel2_Click(object sender, EventArgs e) => MetroMessageBox.Show(this, csediterrors.Text, "Errors", MessageBoxButtons.OK, MessageBoxIcon.Error); private void metroPanel1_Click(object sender, EventArgs e) => MetroMessageBox.Show(this, csediterrors.Text, "Errors", MessageBoxButtons.OK, MessageBoxIcon.Error); @@ -123,11 +127,11 @@ namespace cashew { if (cseditref.Text == "Code") { - cseditrefl = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditrefl = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } else { - cseditcodel = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditcodel = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } Stream s = File.OpenWrite(csSaveFileDialog.FileName); new BinaryFormatter().Serialize(s, new string[][] { cseditcodel, cseditrefl }); @@ -138,11 +142,11 @@ namespace cashew csediterrors.Text = ""; if (cseditref.Text == "Code") { - cseditrefl = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditrefl = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } else { - cseditcodel = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditcodel = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } CSharpCodeProvider provider = new CSharpCodeProvider(); CompilerParameters parameters = new CompilerParameters @@ -173,18 +177,22 @@ namespace cashew private void cseditrun_Click(object sender, EventArgs e) { - if (cseditrun.Text == "Run") + if ((script != null) && script.ThreadState == System.Threading.ThreadState.Running) + { + script.Abort(); + } + else { try { csediterrors.Text = ""; if (cseditref.Text == "Code") { - cseditrefl = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditrefl = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } else { - cseditcodel = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditcodel = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); } CompilerParameters parameters = new CompilerParameters { @@ -195,9 +203,22 @@ namespace cashew CompilerResults results = new CSharpCodeProvider().CompileAssemblyFromSource(parameters, string.Join("\r\n", cseditcodel)); if (results.Errors.HasErrors) throw new InvalidOperationException(string.Join("\r\n\r\n", results.Errors.OfType().Select(s => "Error in line " + s.Line.ToString() + ": " + s.ErrorNumber + " - " + s.ErrorText).ToArray())); - script = results.CompiledAssembly.EntryPoint; cseditrun.Text = "Stop"; - cseditexecutor.RunWorkerAsync(); + script = new Thread(() => + { + try + { + _ = results.CompiledAssembly.EntryPoint.Invoke(null, null); + } + finally + { + Invoke((MethodInvoker)delegate () + { + cseditrun.Text = "Run"; + }); + } + }); + script.Start(); csediterrors.Text = "Ready"; } catch (Exception e1) @@ -205,10 +226,7 @@ namespace cashew csediterrors.Text = e1.Message; } } - else - { - cseditexecutor.CancelAsync(); - } + cseditrun.Text = script.ThreadState == System.Threading.ThreadState.Running ? "Stop" : "Run"; } private void cseditopen_Click(object sender, EventArgs e) @@ -225,9 +243,9 @@ namespace cashew cseditcodel = tmp[0]; cseditrefl = tmp[1]; if (cseditref.Text == "References") - cseditcode.Text = string.Join("\r\n", cseditcodel); + cseditCode.Text = string.Join("\r\n", cseditcodel); else - cseditcode.Text = string.Join("\r\n", cseditrefl); + cseditCode.Text = string.Join("\r\n", cseditrefl); } else { @@ -235,9 +253,9 @@ namespace cashew cseditcodel = decompiler.DecompileWholeModuleAsString().Split(new string[] { "\r\n" }, StringSplitOptions.None); cseditrefl = new string[] { }; if (cseditref.Text == "References") - cseditcode.Text = string.Join("\r\n", cseditcodel); + cseditCode.Text = string.Join("\r\n", cseditcodel); else - cseditcode.Text = string.Join("\r\n", cseditrefl); + cseditCode.Text = string.Join("\r\n", cseditrefl); } } catch (Exception e1) @@ -251,28 +269,20 @@ namespace cashew { if (cseditref.Text == "References") { - cseditcodel = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); - cseditcode.Text = string.Join("\r\n", cseditrefl); - cseditcode.Refresh(); + cseditcodel = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditCode.Text = string.Join("\r\n", cseditrefl); + cseditCode.Refresh(); cseditref.Text = "Code"; } else { - cseditrefl = cseditcode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); - cseditcode.Text = string.Join("\r\n", cseditcodel); - cseditcode.Refresh(); + cseditrefl = cseditCode.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None); + cseditCode.Text = string.Join("\r\n", cseditcodel); + cseditCode.Refresh(); cseditref.Text = "References"; } } - private void cseditexecutor_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) - { - if (!cseditexecutor.CancellationPending) - _ = script.Invoke(null, null); - } - - private void cseditexecutor_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) => cseditrun.Text = "Run"; - #endregion CS #region HTML @@ -514,19 +524,23 @@ namespace cashew private void pythonRun_Click(object sender, EventArgs e) { - ScriptEngine engine = Python.CreateEngine(); - try + new Thread(() => { - engine.Execute(pythonCode.Text); - } - catch (Exception e1) - { - MetroMessageBox.Show(this, e1.Message, "Execution Failed", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + ScriptEngine engine = Python.CreateEngine(); + try + { + engine.Execute(pythonCode.Text); + } + catch (Exception e1) + { + Invoke((MethodInvoker)delegate () + { + MetroMessageBox.Show(this, e1.Message, "Execution Failed", MessageBoxButtons.OK, MessageBoxIcon.Error); + }); + } + }).Start(); } #endregion Python } -} - -//Fix HTML Tab; Add syntax tree to cs? \ No newline at end of file +} \ No newline at end of file diff --git a/cashew/MainForm.resx b/cashew/MainForm.resx index 456d899..03960bb 100644 --- a/cashew/MainForm.resx +++ b/cashew/MainForm.resx @@ -146,9 +146,6 @@ IF YOU WANT A PROFESSIONAL PROGRAM, DON'T USE THIS! 153, 17 - - 293, 17 - 423, 17