Skip to content

Commit 0836ce0

Browse files
v2.1.5 : Added Default Icon Path to EZProj
1 parent 85ecd3b commit 0836ce0

8 files changed

Lines changed: 23 additions & 19 deletions

File tree

EZCode/EZProj.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public class EZProj
5353
/// </summary>
5454
public string? IconPath { get; set; }
5555
/// <summary>
56+
/// Default Icon for project
57+
/// </summary>
58+
public readonly string DefaultIconPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "EZCode", "EZCode", "EZCode_Logo.ico");
59+
/// <summary>
5660
/// Icon for project
5761
/// </summary>
5862
public Icon Icon { get; set; }
@@ -186,7 +190,7 @@ public string ReadConvert(string? _filecontent = null)
186190
Debug = false;
187191
CloseOnEnd = true;
188192
Name ??= $"EZCode_v{EzCode.Version}";
189-
string iconpath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "EZCode", "EZCode", "EZCode_Logo.ico");
193+
string iconpath = DefaultIconPath;
190194
IconPath ??= File.Exists(iconpath) ? iconpath : null;
191195

192196
string filecontent = FileContents;
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace EZ_IDE
1313
{
14-
public partial class Text_To_Code : Form
14+
public partial class Format_Code : Form
1515
{
16-
public Text_To_Code()
16+
public Format_Code()
1717
{
1818
InitializeComponent();
1919
AllowSpaces.Checked = Settings.TtC_Allow_Spaces;

EZ_IDE/IDE.Designer.cs

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EZ_IDE/IDE.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace EZ_IDE
1313
{
1414
public partial class IDE : Form
1515
{
16-
public static readonly string Version = "1.0.7";
16+
public static readonly string Version = "1.0.8";
1717

1818
#region AutoComplete
1919
readonly AutocompleteMenu popupMenu;
@@ -1227,7 +1227,7 @@ private void splitContainer1_SplitterMoved(object sender, SplitterEventArgs e)
12271227
private void textToCodeToolStripMenuItem_Click(object sender, EventArgs e)
12281228
{
12291229
// text to code
1230-
Text_To_Code text_to_code = new Text_To_Code();
1230+
Format_Code text_to_code = new Format_Code();
12311231
text_to_code.ShowDialog();
12321232
}
12331233

EZ_IDE/IDE.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs
184184
LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu
185185
SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAACAgAAAJNU0Z0AUkBTAIBAQMB
186-
AAGQAQUBkAEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
186+
AAGYAQUBmAEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
187187
AAP/A/QD/jkAA/8DAAP/FQAD/gP7A/cD9gP5A/1RAAO9AbMBsgGxA+0zAAP5AbwBuwG8A88DvwP9DwAD
188188
/gP1A+AD0gHMAcsBzALTAdQD6gP8A/9LAAP+Ac8CzgHLAcoByAO7A/QqAAP9A8EC7wHwA+kD6APdA/8J
189189
AAP+A/UB2gLYAckCxQHBArwBtAGzAbQBrwGsAa4BwAG/AcAD5wP8SwAD7gHxAvAC7gHtAecB5QHkAcIB

EZ_IDE/ProjectSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void Initialize(ref EzCode code, Panel? visualoutput = null, RichTextBox?
150150
public string ConverToCode()
151151
{
152152
string startup = StartUp.Replace("\"", "").Trim();
153-
string code = $"{(Name != "" ? $"name:\"{Name}\"{Environment.NewLine}" : "")}fileinerror:\"{FileInError}\"{Environment.NewLine}showbuild:\"{ShowBuild}\"{Environment.NewLine}isvisual:\"{IsVisual}\"{Environment.NewLine}closeonend:\"{CloseOnEnd}\"{Environment.NewLine}debug:\"{Debug}\"{Environment.NewLine}clearconsole:\"{ClearConsole}\"{Environment.NewLine}window:\"{Window}\"{(Icon != "" ? $"{Environment.NewLine}icon:\"{Icon}\"" : "")}{(startup != "" ? $"{Environment.NewLine}startup:\"{startup}\"" : "")}";
153+
string code = $"{(Name != "" ? $"name:\"{Name}\"{Environment.NewLine}" : "")}{(!FileInError ? $"fileinerror:\"{FileInError}\"{Environment.NewLine}" : "")}{(ShowBuild ? $"showbuild:\"{ShowBuild}\"{Environment.NewLine}" : "")}{(IsVisual ? "isvisual:\"{IsVisual}\"{Environment.NewLine}" : "")}{(!CloseOnEnd ? $"closeonend:\"{CloseOnEnd}\"{Environment.NewLine}" : "")}{(Debug ? $"debug:\"{Debug}\"{Environment.NewLine}" : "")}{(!ClearConsole ? $"clearconsole:\"{ClearConsole}\"{Environment.NewLine}" : "")}window:\"{Window}\"{(Icon != "" ? $"{Environment.NewLine}icon:\"{Icon}\"" : "")}{(startup != "" ? $"{Environment.NewLine}startup:\"{startup}\"" : "")}";
154154
foreach (var file in Files_Code)
155155
{
156156
code += Environment.NewLine + file;

0 commit comments

Comments
 (0)