Very minor improvements
This commit is contained in:
parent
4177294250
commit
97c4f62677
|
@ -275,7 +275,9 @@
|
|||
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.Text = "using System;\r\n\r\nnamespace Project\r\n{\r\n public class Program\r\n {\r\n p" +
|
||||
"ublic static void Main()\r\n {\r\n Console.WriteLine(\"Hello, world" +
|
||||
"!\");\r\n }\r\n }\r\n}\r\n";
|
||||
//
|
||||
// htmltab
|
||||
//
|
||||
|
@ -543,9 +545,9 @@
|
|||
this.infoPanel.AutoSize = true;
|
||||
this.infoPanel.Location = new System.Drawing.Point(3, 0);
|
||||
this.infoPanel.Name = "infoPanel";
|
||||
this.infoPanel.Size = new System.Drawing.Size(119, 38);
|
||||
this.infoPanel.Size = new System.Drawing.Size(682, 76);
|
||||
this.infoPanel.TabIndex = 2;
|
||||
this.infoPanel.Text = "This Program uses:\r\n[PACKAGELIST]";
|
||||
this.infoPanel.Text = resources.GetString("infoPanel.Text");
|
||||
//
|
||||
// nightmodeToggle
|
||||
//
|
||||
|
|
|
@ -34,8 +34,8 @@ namespace cashew
|
|||
private readonly IMetroControl[] metroControls;
|
||||
private readonly Control[] normalControls;
|
||||
private readonly ToolStripMenuItem[] menuItems;
|
||||
private string[] cseditcodel;
|
||||
private string[] cseditrefl;
|
||||
private string[] cseditcodel = new string[0];
|
||||
private string[] cseditrefl = new string[0];
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
|
@ -52,7 +52,6 @@ namespace cashew
|
|||
heading2h2ToolStripMenuItem, heading3h3ToolStripMenuItem, heading4h4ToolStripMenuItem, heading5h5ToolStripMenuItem, heading6h6ToolStripMenuItem, textToolStripMenuItem2, backgroundToolStripMenuItem, backgroundRepeatToolStripMenuItem, backgroundPositionToolStripMenuItem, backgroundImageToolStripMenuItem, backgroundColorToolStripMenuItem, backgroundAttachmentToolStripMenuItem,
|
||||
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;
|
||||
metroToggle1_CheckedChanged(this, new EventArgs());
|
||||
languageTabControl.SelectedTab = infotab;
|
||||
|
@ -68,7 +67,7 @@ namespace cashew
|
|||
{
|
||||
ar.ExtractToDirectory(Path.Combine(Path.GetTempPath(), "Cashew\\Python"));
|
||||
}
|
||||
infoPanel.Text = "This Program uses:" + string.Join("", XDocument.Parse(Resources.packages).Element("packages").Elements("package").Select(s => "\r\n- " + s.Attribute("id").Value + " " + s.Attribute("version").Value).OrderBy(s => s));
|
||||
infoPanel.Text = infoPanel.Text.Replace("[PACKAGELIST]", string.Join("\r\n", XDocument.Parse(Resources.packages).Element("packages").Elements("package").Select(s => "- " + s.Attribute("id").Value + " " + s.Attribute("version").Value).OrderBy(s => s)));
|
||||
}
|
||||
|
||||
private void MAIN_Load(object sender, EventArgs e) => BringToFront();
|
||||
|
|
|
@ -117,21 +117,11 @@
|
|||
<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 name="infoPanel.Text" xml:space="preserve">
|
||||
<value>NOTE: DO NOT CLOSE THE CONSOLE! DOING SO WILL CRASH CASHEW
|
||||
NOTE: The output of programs written in Cashew will be printed to the native console, no new window will open up.
|
||||
This Program uses:
|
||||
[PACKAGELIST]</value>
|
||||
</data>
|
||||
<metadata name="csSaveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace cashew
|
|||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Console.Title = "The Cashew Project - Native Shell";
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue