- Small changes

- Better ICSharpCode.TextEditor implementation
This commit is contained in:
CreepyCrafter24 2018-11-28 21:08:43 +01:00
parent 1ad5d0bbc6
commit 996467f2a7
16 changed files with 23342 additions and 354 deletions

View File

@ -1,6 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Humanizer" publicKeyToken="979442b78dfc278e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.5.0.0" newVersion="2.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Mono.Cecil" publicKeyToken="50cebf1cceb9d05e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.10.1.0" newVersion="0.10.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.3.0" newVersion="1.2.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

4
cashew/FodyWeavers.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura CreateTemporaryAssemblies="true" />
</Weavers>

106
cashew/FodyWeavers.xsd Normal file
View File

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuild. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification on the target assembly after all weavers have been finished.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

434
cashew/Form1.Designer.cs generated
View File

@ -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[] {
"<!DOCTYPE html>",
"<head>",
"<title>Title</title>",
"</head>",
"<body>",
"Example Text",
"</body>",
"</html>"};
this.htmltext.Location = new System.Drawing.Point(3, 47);
this.htmltext.MaxLength = 32767;
this.htmltext.Multiline = true;
this.htmltext.Name = "htmltext";
this.htmltext.PasswordChar = '\0';
this.htmltext.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.htmltext.SelectedText = "";
this.htmltext.SelectionLength = 0;
this.htmltext.SelectionStart = 0;
this.htmltext.ShortcutsEnabled = true;
this.htmltext.Size = new System.Drawing.Size(332, 335);
this.htmltext.TabIndex = 4;
this.htmltext.Text = "<!DOCTYPE html>\r\n<head>\r\n<title>Title</title>\r\n</head>\r\n<body>\r\nExample Text\r\n</b" +
"ody>\r\n</html>";
this.htmltext.UseSelectable = true;
this.htmltext.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.htmltext.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.htmltext.TextChanged += new System.EventHandler(this.htmltext_TextChanged);
//
// 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;
this.livehider.HorizontalScrollbarSize = 10;
this.livehider.Location = new System.Drawing.Point(238, 3);
this.livehider.Location = new System.Drawing.Point(238, 0);
this.livehider.Name = "livehider";
this.livehider.Size = new System.Drawing.Size(45, 17);
this.livehider.TabIndex = 4;
@ -350,13 +401,31 @@
this.htmlUpdateToggle.AutoSize = true;
this.htmlUpdateToggle.Checked = true;
this.htmlUpdateToggle.CheckState = System.Windows.Forms.CheckState.Checked;
this.htmlUpdateToggle.Location = new System.Drawing.Point(255, 3);
this.htmlUpdateToggle.Location = new System.Drawing.Point(255, 0);
this.htmlUpdateToggle.Name = "htmlUpdateToggle";
this.htmlUpdateToggle.Size = new System.Drawing.Size(80, 17);
this.htmlUpdateToggle.TabIndex = 4;
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)
| System.Windows.Forms.AnchorStyles.Right)));
this.htmlText.ConvertTabsToSpaces = true;
this.htmlText.FoldingStrategy = "XML";
this.htmlText.Font = new System.Drawing.Font("Courier New", 10F);
this.htmlText.IsIconBarVisible = true;
this.htmlText.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow;
this.htmlText.Location = new System.Drawing.Point(3, 44);
this.htmlText.Name = "htmlText";
this.htmlText.Size = new System.Drawing.Size(332, 338);
this.htmlText.SyntaxHighlighting = "HTML";
this.htmlText.TabIndex = 8;
this.htmlText.Text = "<!DOCTYPE html>\r\n<head>\r\n<title>Title</title>\r\n</head>\r\n<body>\r\nExample Text\r\n</b" +
"ody>\r\n</html>";
//
// htmlLoadIndicator
//
@ -393,34 +462,38 @@
//
// pythontab
//
this.pythontab.Controls.Add(this.pythonExtract);
this.pythontab.Controls.Add(this.pythonCode);
this.pythontab.Controls.Add(this.pythonSave);
this.pythontab.Controls.Add(this.pythonRun);
this.pythontab.Controls.Add(this.pythonOpen);
this.pythontab.Controls.Add(this.pythonCode);
this.pythontab.HorizontalScrollbarBarColor = true;
this.pythontab.HorizontalScrollbarHighlightOnWheel = false;
this.pythontab.HorizontalScrollbarSize = 10;
this.pythontab.Location = new System.Drawing.Point(4, 38);
this.pythontab.Name = "pythontab";
this.pythontab.Size = new System.Drawing.Size(789, 390);
this.pythontab.Size = new System.Drawing.Size(789, 391);
this.pythontab.TabIndex = 3;
this.pythontab.Text = "Python";
this.pythontab.VerticalScrollbarBarColor = true;
this.pythontab.VerticalScrollbarHighlightOnWheel = false;
this.pythontab.VerticalScrollbarSize = 10;
//
// pythonExtract
// pythonCode
//
this.pythonExtract.ActiveControl = null;
this.pythonExtract.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pythonExtract.Location = new System.Drawing.Point(684, 3);
this.pythonExtract.Name = "pythonExtract";
this.pythonExtract.Size = new System.Drawing.Size(102, 38);
this.pythonExtract.TabIndex = 10;
this.pythonExtract.Text = "Extract Python";
this.pythonExtract.UseSelectable = true;
this.pythonExtract.Click += new System.EventHandler(this.metroTile1_Click);
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.FoldingStrategy = "XML";
this.pythonCode.Font = new System.Drawing.Font("Courier New", 10F);
this.pythonCode.IsIconBarVisible = true;
this.pythonCode.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow;
this.pythonCode.Location = new System.Drawing.Point(3, 47);
this.pythonCode.Name = "pythonCode";
this.pythonCode.Size = new System.Drawing.Size(783, 341);
this.pythonCode.SyntaxHighlighting = "Python";
this.pythonCode.TabIndex = 11;
this.pythonCode.Text = "import time\r\nprint(\"Hello world!\")\r\ntime.sleep(3)";
//
// pythonSave
//
@ -455,44 +528,6 @@
this.pythonOpen.UseSelectable = true;
this.pythonOpen.Click += new System.EventHandler(this.pythonOpen_Click);
//
// pythonCode
//
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.CustomButton.Image = null;
this.pythonCode.CustomButton.Location = new System.Drawing.Point(445, 2);
this.pythonCode.CustomButton.Name = "";
this.pythonCode.CustomButton.Size = new System.Drawing.Size(335, 335);
this.pythonCode.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.pythonCode.CustomButton.TabIndex = 1;
this.pythonCode.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.pythonCode.CustomButton.UseSelectable = true;
this.pythonCode.CustomButton.Visible = false;
this.pythonCode.Lines = new string[] {
"import time",
"print(\"Hello World!\")",
"time.sleep(3)"};
this.pythonCode.Location = new System.Drawing.Point(3, 47);
this.pythonCode.MaxLength = 32767;
this.pythonCode.Multiline = true;
this.pythonCode.Name = "pythonCode";
this.pythonCode.PasswordChar = '\0';
this.pythonCode.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.pythonCode.SelectedText = "";
this.pythonCode.SelectionLength = 0;
this.pythonCode.SelectionStart = 0;
this.pythonCode.ShortcutsEnabled = true;
this.pythonCode.Size = new System.Drawing.Size(783, 340);
this.pythonCode.TabIndex = 6;
this.pythonCode.Text = "import time\r\nprint(\"Hello World!\")\r\ntime.sleep(3)";
this.pythonCode.UseSelectable = true;
this.pythonCode.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.pythonCode.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// infotab
//
this.infotab.Controls.Add(this.infoPanel);
@ -501,7 +536,7 @@
this.infotab.HorizontalScrollbarSize = 10;
this.infotab.Location = new System.Drawing.Point(4, 38);
this.infotab.Name = "infotab";
this.infotab.Size = new System.Drawing.Size(789, 390);
this.infotab.Size = new System.Drawing.Size(789, 391);
this.infotab.TabIndex = 1;
this.infotab.Text = "Info";
this.infotab.VerticalScrollbarBarColor = true;
@ -550,7 +585,7 @@
// csOpenFileDialog
//
this.csOpenFileDialog.DefaultExt = "dat";
this.csOpenFileDialog.Filter = "Data File | *.dat";
this.csOpenFileDialog.Filter = "Data File | *.dat|Binary|*.exe";
//
// cseditexecutor
//
@ -1100,131 +1135,6 @@
//
this.pythonSaveFileDialog.Filter = "Python Files|*.py";
//
// 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);
//
// 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.CustomButton.Image = null;
this.cseditcode.CustomButton.Location = new System.Drawing.Point(491, 2);
this.cseditcode.CustomButton.Name = "";
this.cseditcode.CustomButton.Size = new System.Drawing.Size(289, 289);
this.cseditcode.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.cseditcode.CustomButton.TabIndex = 1;
this.cseditcode.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.cseditcode.CustomButton.UseSelectable = true;
this.cseditcode.CustomButton.Visible = false;
this.cseditcode.Lines = new string[] {
"using System;",
"using System.Windows.Forms;",
"",
"namespace Project",
"{",
" public class Program",
" {",
" public static void Main()",
" {",
" MessageBox.Show(\"Hello, world!\");",
" }",
" }",
"}"};
this.cseditcode.Location = new System.Drawing.Point(3, 44);
this.cseditcode.MaxLength = 32767;
this.cseditcode.Multiline = true;
this.cseditcode.Name = "cseditcode";
this.cseditcode.PasswordChar = '\0';
this.cseditcode.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.cseditcode.SelectedText = "";
this.cseditcode.SelectionLength = 0;
this.cseditcode.SelectionStart = 0;
this.cseditcode.ShortcutsEnabled = true;
this.cseditcode.Size = new System.Drawing.Size(783, 294);
this.cseditcode.TabIndex = 2;
this.cseditcode.Text = resources.GetString("cseditcode.Text");
this.cseditcode.UseSelectable = true;
this.cseditcode.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.cseditcode.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// 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);
//
// 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);
//
// MAIN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1240,6 +1150,8 @@
this.Text = "The Cashew Project";
this.languageTabControl.ResumeLayout(false);
this.cstab.ResumeLayout(false);
this.csediterrorpanel.ResumeLayout(false);
this.csediterrorpanel.PerformLayout();
this.htmltab.ResumeLayout(false);
this.htmlSep.Panel1.ResumeLayout(false);
this.htmlSep.Panel1.PerformLayout();
@ -1251,15 +1163,12 @@
this.infotab.ResumeLayout(false);
this.infotab.PerformLayout();
this.htmlOptionsMenu.ResumeLayout(false);
this.csediterrorpanel.ResumeLayout(false);
this.csediterrorpanel.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private MetroFramework.Controls.MetroTabControl languageTabControl;
private MetroFramework.Controls.MetroTabPage cstab;
private MetroFramework.Controls.MetroTabPage infotab;
@ -1271,7 +1180,6 @@
private MetroFramework.Controls.MetroLabel infoPanel;
private System.ComponentModel.BackgroundWorker cseditexecutor;
private System.Windows.Forms.SplitContainer htmlSep;
private MetroFramework.Controls.MetroTextBox htmltext;
private System.Windows.Forms.WebBrowser htmldisplay;
private MetroFramework.Controls.MetroLabel htmltitle;
private MetroFramework.Controls.MetroContextMenu htmlOptionsMenu;
@ -1353,8 +1261,6 @@
private MetroFramework.Controls.MetroTile pythonSave;
private MetroFramework.Controls.MetroTile pythonRun;
private MetroFramework.Controls.MetroTile pythonOpen;
private MetroFramework.Controls.MetroTextBox pythonCode;
private MetroFramework.Controls.MetroTile pythonExtract;
private System.Windows.Forms.OpenFileDialog pythonOpenFileDialog;
private System.Windows.Forms.SaveFileDialog pythonSaveFileDialog;
private MetroFramework.Controls.MetroTile cseditrun;
@ -1363,7 +1269,9 @@
private MetroFramework.Controls.MetroTile cseditopen;
private MetroFramework.Controls.MetroPanel csediterrorpanel;
private MetroFramework.Controls.MetroLabel csediterrors;
private MetroFramework.Controls.MetroTextBox cseditcode;
private ICSharpCode.TextEditor.TextEditorControlEx cseditcode;
private ICSharpCode.TextEditor.TextEditorControlEx htmlText;
private ICSharpCode.TextEditor.TextEditorControlEx pythonCode;
}
}

View File

@ -1,5 +1,4 @@
#region MakeApp()
using System;
using System;
using System.Windows.Forms;
using MetroFramework;
using MetroFramework.Forms;
@ -7,20 +6,35 @@ using System.IO;
using CCFunctions;
using System.Drawing;
using System.Diagnostics;
using ICSharpCode.TextEditor.Document;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.TypeSystem;
using System.Reflection;
using System.IO.Compression;
using MetroFramework.Interfaces;
#pragma warning disable IDE1006
namespace cashew {
public partial class MAIN : MetroForm {
#region General
MetroFramework.Interfaces.IMetroControl[] metroControls;
IMetroControl[] metroControls;
Control[] normalControls;
ToolStripMenuItem[] menuItems;
string[] cseditcodel;
string[] cseditrefl;
string TempPath = Path.GetTempPath() + "cashew";
static void Splash() => Application.Run(new Splash());
public MAIN() {
Thread splash = new Thread(new ThreadStart(Splash));
splash.Start();
InitializeComponent();
metroControls = new MetroFramework.Interfaces.IMetroControl[] { nmtext, languageTabControl, cstab, infotab, nightmodeToggle, cseditopen, cseditrun, cseditsave, cseditcode, csediterrorpanel, csediterrors, cseditref, infoPanel, htmltab, htmltext, htmltitle, htmlOptionsTile, htmlOptionsMenu, htmlRefreshTile, htmlLoad, htmlSave, htmlLoadIndicator, htmlUpdateToggle,
htmlLiveLabel, livehider, nightmodehide, pythontab, pythonSave, pythonRun, pythonOpen, pythonCode, pythonExtract};
normalControls = new Control[] { htmlSep, htmldisplay };
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 };
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,
@ -28,9 +42,24 @@ namespace cashew {
fontToolStripMenuItem, sizeToolStripMenuItem, weightToolStripMenuItem, colorToolStripMenuItem, directionToolStripMenuItem, lineHeightToolStripMenuItem, alignToolStripMenuItem, letterSpacingToolStripMenuItem, decorationToolStripMenuItem, indentToolStripMenuItem, shadowToolStripMenuItem, transformToolStripMenuItem, wordspacingToolStripMenuItem, centercenterToolStripMenuItem,
paragraphpToolStripMenuItem};
cseditrefl = new string[1] { "System.Windows.Forms.dll" };
htmldisplay.DocumentText = htmltext.Text;
htmldisplay.DocumentText = htmlText.Text;
metroToggle1_CheckedChanged(this, new EventArgs());
languageTabControl.SelectedTab = infotab;
if (Directory.Exists(TempPath)) { Directory.Delete(TempPath, true); }
Directory.CreateDirectory(TempPath + @"\xshd");
File.WriteAllBytes(TempPath + @"\tmp.zip", Resources.xshd);
ZipFile.ExtractToDirectory(TempPath + @"\tmp.zip", TempPath + @"\xshd");
File.Delete(TempPath + @"\tmp.zip");
HighlightingManager.Manager.AddSyntaxModeFileProvider(new FileSyntaxModeProvider(TempPath + @"\xshd"));
try {
if (Directory.Exists(TempPath + @"\Python\")) {
Directory.Delete(TempPath + @"\Python\");
}
try { Directory.CreateDirectory(TempPath + @"\Python\"); } catch { }
File.WriteAllBytes(TempPath + @"\Python.zip", Resources.Python);
ZipFile.ExtractToDirectory(TempPath + @"\Python.zip", TempPath + @"\Python");
} catch (Exception e) { MessageBox.Show(e.ToString()); }
splash.Abort();
}
private void metroToggle1_CheckedChanged(object sender, EventArgs e) {
@ -76,9 +105,9 @@ namespace cashew {
if (csSaveFileDialog.ShowDialog() == DialogResult.OK) {
try {
if (cseditref.Text == "Code") {
cseditrefl = cseditcode.Lines;
cseditrefl = Misc.StringToArray(cseditcode.Text);
} else {
cseditcodel = cseditcode.Lines;
cseditcodel = Misc.StringToArray(cseditcode.Text);
}
Misc.SaveObjectToFile(new string[][] { cseditcodel, cseditrefl }, csSaveFileDialog.FileName);
} catch (Exception e1) {
@ -92,9 +121,9 @@ namespace cashew {
try {
csediterrors.Text = "";
if (cseditref.Text == "Code") {
cseditrefl = cseditcode.Lines;
cseditrefl = Misc.StringToArray(cseditcode.Text);
} else {
cseditcodel = cseditcode.Lines;
cseditcodel = Misc.StringToArray(cseditcode.Text);
}
script = Compiling.CScriptToMethod(Misc.ArrayToString(cseditcodel, true), "Project", "Program", "Main", cseditrefl, new Microsoft.CSharp.CSharpCodeProvider(), new System.CodeDom.Compiler.CompilerParameters(), true, true);
cseditrun.Text = "Stop";
@ -107,39 +136,50 @@ namespace cashew {
cseditexecutor.CancelAsync();
}
}
private void cseditopen_Click(object sender, EventArgs e) {
if (csOpenFileDialog.ShowDialog() == DialogResult.OK) {
try {
string[][] tmp = (string[][])Misc.LoadObjectFromFile(csOpenFileDialog.FileName);
cseditcodel = tmp[0];
cseditrefl = tmp[1];
if (cseditref.Text == "References") {
cseditcode.Lines = cseditcodel;
if (csOpenFileDialog.FilterIndex == 1) {
string[][] tmp = (string[][])Misc.LoadObjectFromFile(csOpenFileDialog.FileName);
cseditcodel = tmp[0];
cseditrefl = tmp[1];
if (cseditref.Text == "References")
cseditcode.Text = Misc.ArrayToString(cseditcodel, true);
else
cseditcode.Text = Misc.ArrayToString(cseditrefl, true);
} else {
cseditcode.Lines = cseditrefl;
CSharpDecompiler decompiler = new CSharpDecompiler(csOpenFileDialog.FileName, new DecompilerSettings());
cseditcodel = Misc.StringToArray(decompiler.DecompileWholeModuleAsString().Replace("\r", ""));
cseditrefl = new string[]{};
if (cseditref.Text == "References")
cseditcode.Text = Misc.ArrayToString(cseditcodel, true);
else
cseditcode.Text = Misc.ArrayToString(cseditrefl, true);
}
} catch (Exception e1) {
MessageBox.Show(e1.Message, "Failed to Load");
MessageBox.Show(e1.ToString(), "Failed to Load");
}
}
}
private void cseditref_Click(object sender, EventArgs e) {
if (cseditref.Text == "References") {
cseditcodel = cseditcode.Lines;
cseditcode.Lines = cseditrefl;
cseditcodel = Misc.StringToArray(cseditcode.Text.Replace("\r", ""));
cseditcode.Text = Misc.ArrayToString(cseditrefl, true);
cseditcode.Refresh();
cseditref.Text = "Code";
} else {
cseditrefl = cseditcode.Lines;
cseditcode.Lines = cseditcodel;
cseditrefl = Misc.StringToArray(cseditcode.Text.Replace("\r", ""));
cseditcode.Text = Misc.ArrayToString(cseditcodel, true);
cseditcode.Refresh();
cseditref.Text = "References";
}
}
private void cseditexecutor_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) {
while (cseditexecutor.CancellationPending == false) {
System.Reflection.MethodInfo q = script;
MethodInfo q = script;
object o = q.Invoke(null, null);
return;
}
@ -161,31 +201,37 @@ namespace cashew {
private void htmldisplay_Navigating(object sender, WebBrowserNavigatingEventArgs e) => htmlLoadIndicator.Visible = true;
private void htmltext_TextChanged(object sender, EventArgs e) {
if (UpdateHTML) {
htmldisplay.DocumentText = htmltext.Text;
htmldisplay.DocumentText = htmlText.Text;
htmltitle.Text = htmldisplay.DocumentTitle;
}
}
private void htmlRefreshTile_Click(object sender, EventArgs e) {
htmldisplay.DocumentText = htmltext.Text;
htmldisplay.DocumentText = htmlText.Text;
htmltitle.Text = htmldisplay.DocumentTitle;
}
private void htmlOptionsTile_Click(object sender, EventArgs e) => htmlOptionsMenu.Show(htmlOptionsTile.Location);
private void htmlOptionsTile_MouseEnter(object sender, EventArgs e) {
sels = htmltext.SelectionStart;
sele = htmltext.SelectionLength;
if (htmlText.ActiveTextAreaControl.TextArea.SelectionManager.HasSomethingSelected) {
ISelection sel = htmlText.ActiveTextAreaControl.SelectionManager.SelectionCollection[0];
List<string> tmp = Misc.StringToArray(htmlText.Text).OfType<string>().ToList();
//Not working: sele not working
tmp.RemoveRange(sel.EndPosition.Line - 1, tmp.Count - sel.EndPosition.Line); //Determins line
sels = Misc.ArrayToString(tmp.ToArray(), true).ToCharArray().Length + sel.StartPosition.Column; //Line + Column
sele = sels + sel.Length;
} else { sels = 0; sele = htmlText.Text.Length; }
}
private void addToHTMLBox(string inFront, string atEnd) {
htmltext.Text = htmltext.Text.Insert(sels + sele, atEnd);
htmltext.Text = htmltext.Text.Insert(sels, inFront);
htmlText.Text = htmlText.Text.Insert(sele, atEnd);
htmlText.Text = htmlText.Text.Insert(sels, inFront);
}
private void htmlSave_Click(object sender, EventArgs e) {
if (htmlSaveFileDialog.ShowDialog() == DialogResult.OK) {
try {
File.WriteAllLines(htmlSaveFileDialog.FileName, htmltext.Lines);
File.WriteAllLines(htmlSaveFileDialog.FileName, Misc.StringToArray(htmlText.Text));
} catch (Exception e1) {
MessageBox.Show(e1.Message, "Saving Failed");
}
@ -195,7 +241,7 @@ namespace cashew {
private void htmlLoad_Click(object sender, EventArgs e) {
if (htmlOpenFileDialog.ShowDialog() == DialogResult.OK) {
try {
htmltext.Lines = File.ReadAllLines(htmlOpenFileDialog.FileName);
htmlText.Text = Misc.ArrayToString(File.ReadAllLines(htmlOpenFileDialog.FileName), true);
} catch (Exception e1) {
MessageBox.Show(e1.Message, "Loading Failed");
}
@ -268,7 +314,7 @@ namespace cashew {
private void pythonOpen_Click(object sender, EventArgs e) {
if (pythonOpenFileDialog.ShowDialog() == DialogResult.OK) {
try {
pythonCode.Lines = File.ReadAllLines(pythonOpenFileDialog.FileName);
pythonCode.Text = Misc.ArrayToString(File.ReadAllLines(pythonOpenFileDialog.FileName), true);
} catch (Exception e1) {
MessageBox.Show(e1.Message, "Loading Failed");
}
@ -278,7 +324,7 @@ namespace cashew {
private void pythonSave_Click(object sender, EventArgs e) {
if (pythonSaveFileDialog.ShowDialog() == DialogResult.OK) {
try {
File.WriteAllLines(pythonSaveFileDialog.FileName, pythonCode.Lines);
File.WriteAllLines(pythonSaveFileDialog.FileName, Misc.StringToArray(pythonCode.Text));
}
catch (Exception e1) {
MessageBox.Show(e1.Message, "Saving Failed");
@ -287,19 +333,11 @@ namespace cashew {
}
private void pythonRun_Click(object sender, EventArgs e) {
File.WriteAllLines(Path.GetTempPath() + @"Python\tmp.py",pythonCode.Lines);
Process process = Process.Start(new ProcessStartInfo { FileName = Path.GetTempPath() + @"Python\python.exe", Arguments = Path.GetTempPath() + @"Python\tmp.py", UseShellExecute = true });
}
private void metroTile1_Click(object sender, EventArgs e) {
if (Directory.Exists(Path.GetTempPath() + "Python")) {
Directory.Delete(Path.GetTempPath() + "Python");
}
try { Directory.CreateDirectory(Path.GetTempPath() + "Python"); } catch { }
File.WriteAllBytes(Path.GetTempPath() + "Python.zip", Resources.Python);
System.IO.Compression.ZipFile.ExtractToDirectory(Path.GetTempPath() + "Python.zip", Path.GetTempPath() + "Python");
File.WriteAllLines(TempPath + @"\Python\tmp.py", Misc.StringToArray(pythonCode.Text));
Process process = Process.Start(new ProcessStartInfo { FileName = TempPath + @"\Python\python.exe", Arguments = TempPath + @"\Python\tmp.py", UseShellExecute = true });
}
#endregion
}
}
#endregion
//Fix HTML Tab; Add syntax tree to cs?

View File

@ -117,6 +117,22 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="cseditcode.Text" xml:space="preserve">
<value>using System;
using System.Windows.Forms;
namespace Project
{
public class Program
{
public static void Main()
{
MessageBox.Show("Hello, world!");
}
}
}
</value>
</data>
<data name="infoPanel.Text" xml:space="preserve">
<value>This Program uses MetroModernUI by Dennis Magno and Costura.Fody by Simon Cropp.
Functionality:
@ -148,21 +164,6 @@ IF YOU WANT A PROFESSIONAL PROGRAM, DON'T USE THIS!</value>
<metadata name="pythonSaveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1064, 17</value>
</metadata>
<data name="cseditcode.Text" xml:space="preserve">
<value>using System;
using System.Windows.Forms;
namespace Project
{
public class Program
{
public static void Main()
{
MessageBox.Show("Hello, world!");
}
}
}</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

View File

@ -1,19 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace cashew
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
namespace cashew {
static class Program {
[STAThread]
static void Main()
{
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MAIN());

View File

@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
@ -68,9 +69,10 @@
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
@ -109,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -69,5 +69,15 @@ namespace cashew {
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] xshd {
get {
object obj = ResourceManager.GetObject("xshd", resourceCulture);
return ((byte[])(obj));
}
}
}
}

View File

@ -121,4 +121,7 @@
<data name="Python" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\Python.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="xshd" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\xshd.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

BIN
cashew/Resources/xshd.zip Normal file

Binary file not shown.

70
cashew/Splash.Designer.cs generated Normal file
View File

@ -0,0 +1,70 @@
namespace cashew
{
partial class Splash
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Splash));
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(218, 127);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(64, 39);
this.label1.TabIndex = 0;
this.label1.Text = "-------------------\r\n| CASHEW |\r\n-------------------";
//
// Splash
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(500, 300);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Splash";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Splash";
this.TransparencyKey = System.Drawing.Color.Maroon;
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
}
}

20
cashew/Splash.cs Normal file
View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace cashew
{
public partial class Splash : Form
{
public Splash()
{
InitializeComponent();
}
}
}

22723
cashew/Splash.resx Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Costura.Fody.3.1.4\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.3.1.4\build\Costura.Fody.props')" />
<Import Project="..\packages\Costura.Fody.3.2.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.3.2.0\build\Costura.Fody.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -9,7 +9,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>cashew</RootNamespace>
<AssemblyName>cashew</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
@ -48,8 +48,29 @@
<Reference Include="CCFunctions">
<HintPath>..\..\T.O.F.U\Net_TOFU\bin\Release\CCFunctions.dll</HintPath>
</Reference>
<Reference Include="Costura, Version=3.1.4.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.3.1.4\lib\net46\Costura.dll</HintPath>
<Reference Include="Costura, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.3.2.0\lib\net46\Costura.dll</HintPath>
</Reference>
<Reference Include="Humanizer, Version=2.5.0.0, Culture=neutral, PublicKeyToken=979442b78dfc278e, processorArchitecture=MSIL">
<HintPath>..\packages\Humanizer.Core.2.5.16\lib\netstandard2.0\Humanizer.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.Decompiler, Version=3.2.0.3856, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.Decompiler.3.2.0.3856\lib\net46\ICSharpCode.Decompiler.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.NRefactory.5.5.1\lib\Net40\ICSharpCode.NRefactory.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory.Cecil, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.NRefactory.5.5.1\lib\Net40\ICSharpCode.NRefactory.Cecil.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory.CSharp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.NRefactory.5.5.1\lib\Net40\ICSharpCode.NRefactory.CSharp.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory.Xml, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.NRefactory.5.5.1\lib\Net40\ICSharpCode.NRefactory.Xml.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.TextEditorEx, Version=1.0.0.6, Culture=neutral, PublicKeyToken=4d61825e8dd49f1a, processorArchitecture=MSIL">
<HintPath>..\packages\ICSharpCode.TextEditorEx.1.0.0.6\lib\net40\ICSharpCode.TextEditorEx.dll</HintPath>
</Reference>
<Reference Include="MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a, processorArchitecture=MSIL">
<HintPath>..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.dll</HintPath>
@ -60,13 +81,37 @@
<Reference Include="MetroFramework.Fonts, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a, processorArchitecture=MSIL">
<HintPath>..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.Fonts.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.10.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.10.1\lib\net40\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.10.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.10.1\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.10.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.10.1\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.10.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.10.1\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\..\ICSharpCode.TextEditor\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression">
<HintPath>..\..\T.O.F.U\Net_TOFU\bin\Release\System.IO.Compression.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
@ -76,6 +121,9 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UIAutomationProvider" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
@ -91,6 +139,12 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Splash.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Splash.Designer.cs">
<DependentUpon>Splash.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
@ -108,6 +162,9 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Splash.resx">
<DependentUpon>Splash.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
@ -119,6 +176,7 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Resources\Python.zip" />
<None Include="Resources\xshd.zip" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
@ -126,15 +184,41 @@
<ItemGroup>
<Content Include="Cashew-64.ico" />
</ItemGroup>
<ItemGroup>
<COMReference Include="AxMicrosoft.Vbe.Interop.Forms">
<Guid>{0D452EE1-E08F-101A-852E-02608C4D0BB4}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>aximp</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
<COMReference Include="Microsoft.Vbe.Interop.Forms">
<Guid>{0D452EE1-E08F-101A-852E-02608C4D0BB4}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.3.3.2\build\Fody.targets" Condition="Exists('..\packages\Fody.3.3.2\build\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.3.2.9\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.3.2.9\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.3.1.4\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.3.1.4\build\Costura.Fody.props'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.3.1.4\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.3.1.4\build\Costura.Fody.targets'))" />
<Error Condition="!Exists('..\packages\Fody.3.3.2\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.3.3.2\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.3.2.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.3.2.0\build\Costura.Fody.props'))" />
</Target>
<Import Project="..\packages\Fody.3.2.9\build\Fody.targets" Condition="Exists('..\packages\Fody.3.2.9\build\Fody.targets')" />
<Import Project="..\packages\Costura.Fody.3.1.4\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.3.1.4\build\Costura.Fody.targets')" />
</Project>

View File

@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="3.1.4" targetFramework="net471" />
<package id="Fody" version="3.2.9" targetFramework="net471" developmentDependency="true" />
<package id="Costura.Fody" version="3.2.0" targetFramework="net472" />
<package id="Fody" version="3.3.2" targetFramework="net472" developmentDependency="true" />
<package id="Humanizer.Core" version="2.5.16" targetFramework="net472" />
<package id="ICSharpCode.Decompiler" version="3.2.0.3856" targetFramework="net472" />
<package id="ICSharpCode.NRefactory" version="5.5.1" targetFramework="net472" />
<package id="ICSharpCode.TextEditorEx" version="1.0.0.6" targetFramework="net472" />
<package id="MetroModernUI" version="1.4.0.0" targetFramework="net461" />
<package id="Mono.Cecil" version="0.10.1" targetFramework="net472" />
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net472" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
</packages>