diff --git a/cashew/App.config b/cashew/App.config
index 8fc0551..fa9af9c 100644
--- a/cashew/App.config
+++ b/cashew/App.config
@@ -1,6 +1,26 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cashew/FodyWeavers.xml b/cashew/FodyWeavers.xml
new file mode 100644
index 0000000..6ef9a82
--- /dev/null
+++ b/cashew/FodyWeavers.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cashew/FodyWeavers.xsd b/cashew/FodyWeavers.xsd
new file mode 100644
index 0000000..96ca018
--- /dev/null
+++ b/cashew/FodyWeavers.xsd
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+ A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks
+
+
+
+
+ A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.
+
+
+
+
+ A list of unmanaged 32 bit assembly names to include, delimited with line breaks.
+
+
+
+
+ A list of unmanaged 64 bit assembly names to include, delimited with line breaks.
+
+
+
+
+ The order of preloaded assemblies, delimited with line breaks.
+
+
+
+
+
+ This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.
+
+
+
+
+ Controls if .pdbs for reference assemblies are also embedded.
+
+
+
+
+ Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.
+
+
+
+
+ As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.
+
+
+
+
+ Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.
+
+
+
+
+ Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.
+
+
+
+
+ A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |
+
+
+
+
+ A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.
+
+
+
+
+ A list of unmanaged 32 bit assembly names to include, delimited with |.
+
+
+
+
+ A list of unmanaged 64 bit assembly names to include, delimited with |.
+
+
+
+
+ The order of preloaded assemblies, delimited with |.
+
+
+
+
+
+
+
+ 'true' to run assembly verification on the target assembly after all weavers have been finished.
+
+
+
+
+ A comma separated list of error codes that can be safely ignored in assembly verification.
+
+
+
+
+
\ No newline at end of file
diff --git a/cashew/Form1.Designer.cs b/cashew/Form1.Designer.cs
index 1353337..d74b591 100644
--- a/cashew/Form1.Designer.cs
+++ b/cashew/Form1.Designer.cs
@@ -32,25 +32,31 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MAIN));
this.languageTabControl = new MetroFramework.Controls.MetroTabControl();
this.cstab = new MetroFramework.Controls.MetroTabPage();
+ this.cseditref = new MetroFramework.Controls.MetroTile();
+ this.cseditrun = new MetroFramework.Controls.MetroTile();
+ this.cseditsave = new MetroFramework.Controls.MetroTile();
+ this.cseditopen = new MetroFramework.Controls.MetroTile();
+ this.csediterrorpanel = new MetroFramework.Controls.MetroPanel();
+ this.csediterrors = new MetroFramework.Controls.MetroLabel();
+ this.cseditcode = new ICSharpCode.TextEditor.TextEditorControlEx();
this.htmltab = new MetroFramework.Controls.MetroTabPage();
+ this.htmlLoad = new MetroFramework.Controls.MetroTile();
this.htmlSep = new System.Windows.Forms.SplitContainer();
this.htmlRefreshTile = new MetroFramework.Controls.MetroTile();
this.htmlLiveLabel = new MetroFramework.Controls.MetroLabel();
- this.htmlLoad = new MetroFramework.Controls.MetroTile();
this.htmlSave = new MetroFramework.Controls.MetroTile();
this.htmlOptionsTile = new MetroFramework.Controls.MetroTile();
- this.htmltext = new MetroFramework.Controls.MetroTextBox();
this.livehider = new MetroFramework.Controls.MetroPanel();
this.htmlUpdateToggle = new MetroFramework.Controls.MetroToggle();
+ this.htmlText = new ICSharpCode.TextEditor.TextEditorControlEx();
this.htmlLoadIndicator = new MetroFramework.Controls.MetroProgressSpinner();
this.htmltitle = new MetroFramework.Controls.MetroLabel();
this.htmldisplay = new System.Windows.Forms.WebBrowser();
this.pythontab = new MetroFramework.Controls.MetroTabPage();
- this.pythonExtract = new MetroFramework.Controls.MetroTile();
+ this.pythonCode = new ICSharpCode.TextEditor.TextEditorControlEx();
this.pythonSave = new MetroFramework.Controls.MetroTile();
this.pythonRun = new MetroFramework.Controls.MetroTile();
this.pythonOpen = new MetroFramework.Controls.MetroTile();
- this.pythonCode = new MetroFramework.Controls.MetroTextBox();
this.infotab = new MetroFramework.Controls.MetroTabPage();
this.infoPanel = new MetroFramework.Controls.MetroLabel();
this.nightmodeToggle = new MetroFramework.Controls.MetroToggle();
@@ -127,15 +133,9 @@
this.nightmodehide = new MetroFramework.Controls.MetroPanel();
this.pythonOpenFileDialog = new System.Windows.Forms.OpenFileDialog();
this.pythonSaveFileDialog = new System.Windows.Forms.SaveFileDialog();
- this.cseditref = new MetroFramework.Controls.MetroTile();
- this.csediterrorpanel = new MetroFramework.Controls.MetroPanel();
- this.csediterrors = new MetroFramework.Controls.MetroLabel();
- this.cseditcode = new MetroFramework.Controls.MetroTextBox();
- this.cseditopen = new MetroFramework.Controls.MetroTile();
- this.cseditrun = new MetroFramework.Controls.MetroTile();
- this.cseditsave = new MetroFramework.Controls.MetroTile();
this.languageTabControl.SuspendLayout();
this.cstab.SuspendLayout();
+ this.csediterrorpanel.SuspendLayout();
this.htmltab.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.htmlSep)).BeginInit();
this.htmlSep.Panel1.SuspendLayout();
@@ -144,7 +144,6 @@
this.pythontab.SuspendLayout();
this.infotab.SuspendLayout();
this.htmlOptionsMenu.SuspendLayout();
- this.csediterrorpanel.SuspendLayout();
this.SuspendLayout();
//
// languageTabControl
@@ -158,16 +157,16 @@
this.languageTabControl.Controls.Add(this.infotab);
this.languageTabControl.Location = new System.Drawing.Point(23, 63);
this.languageTabControl.Name = "languageTabControl";
- this.languageTabControl.SelectedIndex = 0;
+ this.languageTabControl.SelectedIndex = 2;
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.cseditref);
this.cstab.Controls.Add(this.cseditopen);
this.cstab.Controls.Add(this.csediterrorpanel);
this.cstab.Controls.Add(this.cseditcode);
@@ -183,8 +182,106 @@
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";
+ this.cseditref.Size = new System.Drawing.Size(89, 38);
+ this.cseditref.TabIndex = 8;
+ 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);
+ this.cseditrun.Name = "cseditrun";
+ this.cseditrun.Size = new System.Drawing.Size(75, 38);
+ this.cseditrun.TabIndex = 3;
+ 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);
+ this.cseditsave.Name = "cseditsave";
+ this.cseditsave.Size = new System.Drawing.Size(75, 38);
+ this.cseditsave.TabIndex = 4;
+ 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);
+ this.cseditopen.Name = "cseditopen";
+ this.cseditopen.Size = new System.Drawing.Size(75, 38);
+ this.cseditopen.TabIndex = 5;
+ 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)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.csediterrorpanel.AutoScroll = true;
+ this.csediterrorpanel.Controls.Add(this.csediterrors);
+ this.csediterrorpanel.HorizontalScrollbar = true;
+ this.csediterrorpanel.HorizontalScrollbarBarColor = true;
+ this.csediterrorpanel.HorizontalScrollbarHighlightOnWheel = false;
+ this.csediterrorpanel.HorizontalScrollbarSize = 10;
+ this.csediterrorpanel.Location = new System.Drawing.Point(3, 344);
+ this.csediterrorpanel.Name = "csediterrorpanel";
+ this.csediterrorpanel.Size = new System.Drawing.Size(783, 44);
+ this.csediterrorpanel.TabIndex = 7;
+ this.csediterrorpanel.VerticalScrollbar = true;
+ this.csediterrorpanel.VerticalScrollbarBarColor = true;
+ 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";
+ this.csediterrors.Size = new System.Drawing.Size(45, 19);
+ 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)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.cseditcode.BackColor = System.Drawing.Color.White;
+ this.cseditcode.ConvertTabsToSpaces = true;
+ this.cseditcode.FoldingStrategy = "CSharp";
+ this.cseditcode.Font = new System.Drawing.Font("Courier New", 10F);
+ 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.SyntaxHighlighting = "C#";
+ 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;
this.htmltab.HorizontalScrollbarHighlightOnWheel = false;
@@ -198,6 +295,17 @@
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";
+ this.htmlLoad.Size = new System.Drawing.Size(64, 38);
+ this.htmlLoad.TabIndex = 8;
+ 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)
@@ -212,12 +320,11 @@
//
this.htmlSep.Panel1.Controls.Add(this.htmlRefreshTile);
this.htmlSep.Panel1.Controls.Add(this.htmlLiveLabel);
- this.htmlSep.Panel1.Controls.Add(this.htmlLoad);
this.htmlSep.Panel1.Controls.Add(this.htmlSave);
this.htmlSep.Panel1.Controls.Add(this.htmlOptionsTile);
- this.htmlSep.Panel1.Controls.Add(this.htmltext);
this.htmlSep.Panel1.Controls.Add(this.livehider);
this.htmlSep.Panel1.Controls.Add(this.htmlUpdateToggle);
+ this.htmlSep.Panel1.Controls.Add(this.htmlText);
//
// htmlSep.Panel2
//
@@ -232,7 +339,7 @@
//
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(215, 3);
+ this.htmlRefreshTile.Location = new System.Drawing.Point(212, 0);
this.htmlRefreshTile.Name = "htmlRefreshTile";
this.htmlRefreshTile.Size = new System.Drawing.Size(65, 38);
this.htmlRefreshTile.TabIndex = 6;
@@ -244,27 +351,16 @@
//
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, 22);
+ this.htmlLiveLabel.Location = new System.Drawing.Point(304, 19);
this.htmlLiveLabel.Name = "htmlLiveLabel";
this.htmlLiveLabel.Size = new System.Drawing.Size(31, 19);
this.htmlLiveLabel.TabIndex = 3;
this.htmlLiveLabel.Text = "Live";
//
- // htmlLoad
- //
- this.htmlLoad.ActiveControl = null;
- this.htmlLoad.Location = new System.Drawing.Point(145, 3);
- this.htmlLoad.Name = "htmlLoad";
- this.htmlLoad.Size = new System.Drawing.Size(64, 38);
- this.htmlLoad.TabIndex = 8;
- this.htmlLoad.Text = "Load";
- this.htmlLoad.UseSelectable = true;
- this.htmlLoad.Click += new System.EventHandler(this.htmlLoad_Click);
- //
// htmlSave
//
this.htmlSave.ActiveControl = null;
- this.htmlSave.Location = new System.Drawing.Point(75, 3);
+ this.htmlSave.Location = new System.Drawing.Point(72, 0);
this.htmlSave.Name = "htmlSave";
this.htmlSave.Size = new System.Drawing.Size(64, 38);
this.htmlSave.TabIndex = 7;
@@ -275,7 +371,7 @@
// htmlOptionsTile
//
this.htmlOptionsTile.ActiveControl = null;
- this.htmlOptionsTile.Location = new System.Drawing.Point(3, 3);
+ this.htmlOptionsTile.Location = new System.Drawing.Point(0, 0);
this.htmlOptionsTile.Name = "htmlOptionsTile";
this.htmlOptionsTile.Size = new System.Drawing.Size(66, 38);
this.htmlOptionsTile.TabIndex = 5;
@@ -285,58 +381,13 @@
this.htmlOptionsTile.Click += new System.EventHandler(this.htmlOptionsTile_Click);
this.htmlOptionsTile.MouseEnter += new System.EventHandler(this.htmlOptionsTile_MouseEnter);
//
- // htmltext
- //
- 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.CustomButton.Image = null;
- this.htmltext.CustomButton.Location = new System.Drawing.Point(-2, 1);
- this.htmltext.CustomButton.Name = "";
- this.htmltext.CustomButton.Size = new System.Drawing.Size(333, 333);
- this.htmltext.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
- this.htmltext.CustomButton.TabIndex = 1;
- this.htmltext.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
- this.htmltext.CustomButton.UseSelectable = true;
- this.htmltext.CustomButton.Visible = false;
- this.htmltext.Lines = new string[] {
- "",
- "
",
- "Title",
- "",
- "",
- "Example Text",
- "",
- "