Skip to content

Commit d88afbc

Browse files
IDE v1.2.1 : Updated Window Designer Generate Code Method
1 parent e83de15 commit d88afbc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

EZ_IDE/IDE.cs

Lines changed: 1 addition & 1 deletion
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.2.0";
16+
public static readonly string Version = "1.2.1";
1717

1818
#region AutoComplete
1919
readonly AutocompleteMenu popupMenu;

EZ_IDE/Window Designer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private void Generate_Code(object sender, EventArgs e)
5454
$"{(win.ShowInTaskbar != w.ShowInTaskbar ? $", showintaskbar:{win.ShowInTaskbar}" : "")}" +
5555
$"{(win.WindowState != w.WindowState ? $", state:{win.WindowState.ToString().ToLower()}" : "")}" +
5656
$"{(win.FormBorderStyle != w.FormBorderStyle ? $", type:{win.FormBorderStyle.ToString().ToLower()}" : "")}" +
57-
$"{(win.StartPosition != w.StartPosition ? $", startposition:{win.StartPosition.ToString().ToLower().Replace("centerscreen", "enter").Replace("window", "")}" : "")}" +
57+
$"{(win.StartPosition != w.StartPosition ? $", startposition:{win.StartPosition.ToString().ToLower().Replace("centerscreen", "enter").Replace("windows", "").Replace("location", "")}" : "")}" +
5858
$"{(win.Font != w.Font ? $", font:[{win.Font.Name};{win.Font.Size};{win.Font.Style}]" : "")}" +
5959
$"{(win.BackgroundImageLayout != w.BackgroundImageLayout ? $", imagelayout:{win.BackgroundImageLayout.ToString().ToLower()}" : "")}" +
6060
$"{(win.IconImageFile != w.IconImageFile ? $", icon:{win.IconImageFile.Replace("\\", "/").Replace(":", "\\;")}" : "")}" +
@@ -81,6 +81,7 @@ private void Generate_Code(object sender, EventArgs e)
8181
$"{(con.Height != c.Height ? $", height:{con.Height}" : "")}" +
8282
$"{(con.BackColor != c.BackColor ? $", bg:[{con.BackColor.R};{con.BackColor.G};{con.BackColor.B}]" : "")}" +
8383
$"{(con.ForeColor != c.ForeColor ? $", fg:[{con.ForeColor.R};{con.ForeColor.G};{con.ForeColor.B}]" : "")}" +
84+
$"{(con.AutoSize != c.AutoSize ? $", auto:{con.AutoSize}" : "")}" +
8485
$"{(con.Enabled != c.Enabled ? $", enable:{con.Enabled}" : "")}" +
8586
$"{(con.Visible != c.Visible ? $", visible:{con.Visible}" : "")}" +
8687
$"{(con.Anchor != c.Anchor? $", anchor:[{con.Anchor.ToString().Replace(",", ";").Replace(" ", "")}]" : "")}" +

0 commit comments

Comments
 (0)