Skip to content

Commit 018c7eb

Browse files
IDE v1.20 : Window Designer
2 parents 5687020 + e588730 commit 018c7eb

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

EZ_IDE/PropertyGrid_GControl.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using EZCode.GControls;
1+
using System.ComponentModel;
22
using EZCode.Windows;
3-
using System.ComponentModel;
3+
using EZCode.GControls;
44

55
namespace EZ_IDE
66
{
@@ -15,15 +15,15 @@ public PropertyGrid_GControl(Control con, bool iswindow = false, Window? wind =
1515
IsWindow = iswindow;
1616
control = con;
1717

18-
BackColor = con.BackColor;
19-
ForeColor = con.ForeColor;
20-
Text = con.Text;
21-
Name = con.Name;
22-
Id = con.AccessibleName;
23-
Enable = con.Enabled;
24-
AutoSize = con.AutoSize;
25-
ImageLayout = con.BackgroundImageLayout;
26-
MainFont = con.Font;
18+
BackColor = con.BackColor;
19+
ForeColor = con.ForeColor;
20+
Text = con.Text;
21+
Name = con.Name;
22+
Id = con.AccessibleName;
23+
Enable = con.Enabled;
24+
AutoSize = con.AutoSize;
25+
ImageLayout = con.BackgroundImageLayout;
26+
MainFont = con.Font;
2727
if (!IsWindow)
2828
{
2929
Size = con.Size;
@@ -248,13 +248,13 @@ public ImageFile[]? Image
248248
}
249249
if(value.Length > 0)
250250
{
251-
_image = value;
251+
_image = value;
252252
control.BackgroundImage = System.Drawing.Image.FromFile(value[0].FilePath);
253253
window.BackgroundImage = System.Drawing.Image.FromFile(value[0].FilePath);
254254
window.BGImageFile = value[0].FilePath;
255-
}
256255
}
257256
}
257+
}
258258

259259
private ImageLayout _imagelayout;
260260
[Category("_Properties")]
@@ -575,7 +575,7 @@ public IconFile[]? Icon
575575
}
576576
if (value.Length > 0)
577577
{
578-
_icon = value;
578+
_icon = value;
579579
window.IconImageFile = value[0].FilePath;
580580
}
581581
}

EZ_IDE/Window Designer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ private void Generate_Code(object sender, EventArgs e)
126126
}
127127
string[] parts = line.Split(" ");
128128
if (parts[3].EndsWith(","))
129-
{
129+
{
130130
parts[3] = parts[3].Replace(",", "");
131131
line = string.Join(" ", parts);
132132
}
133133
line += $"{Environment.NewLine}{MAIN.Name} display {con.Name}";
134134
Code += line;
135135
}
136-
Code += Environment.NewLine + Environment.NewLine;
136+
Code += Environment.NewLine + Environment.NewLine;
137137
Code += $"// Open {MAIN.Name}{Environment.NewLine}";
138138
Code += $"{MAIN.Name} open";
139139
OutputCode.Text = Code;
@@ -398,4 +398,4 @@ static int GetZIndex(Control control)
398398
return -1;
399399
}
400400
}
401-
}
401+
}

0 commit comments

Comments
 (0)