Skip to content

Commit 7bfc6eb

Browse files
v2.1.3 : Fixed control:align
1 parent 80cc804 commit 7bfc6eb

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

EZCode/EZCode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,14 +1885,14 @@ async Task<string[]> PlaySwitch(string[]? _parts = null, string jumpsto = "", st
18851885

18861886
List<string> lines = method.Contents.ToList();
18871887
string output = "";
1888-
for (int i = 1; i < method.Length - 1; i++)
1888+
for (int i = 1; i < lines.Count - 1; i++)
18891889
{
18901890
if (!playing) break;
18911891
codeLine = i + 1;
18921892
List<string> a_parts = lines[i].Split(new char[] { ' ' }).Where(x => x != "").ToList();
18931893
for (int j = 0; j < a_parts.Count; j++)
18941894
{
1895-
if (a_parts[j].Trim() == "->")
1895+
if (a_parts[j].Trim() == "->")
18961896
{
18971897
try
18981898
{
@@ -4303,8 +4303,8 @@ async Task<Control> Change(Control _control, string[] _parts, int index, bool te
43034303
switch (after[0])
43044304
{
43054305
case "topleft": align = ContentAlignment.TopLeft; break;
4306-
case "topright": align = ContentAlignment.TopCenter; break;
4307-
case "topcenter": align = ContentAlignment.TopRight; break;
4306+
case "topcenter": align = ContentAlignment.TopCenter; break;
4307+
case "topright": align = ContentAlignment.TopRight; break;
43084308
case "middleleft": align = ContentAlignment.MiddleLeft; break;
43094309
case "middlecenter": align = ContentAlignment.MiddleCenter; break;
43104310
case "middleright": align = ContentAlignment.MiddleRight; break;

EZCode/EZCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<Title>EZCode WinForms Programming Language</Title>
8-
<Version>2.0.1</Version>
8+
<Version>2.1.2</Version>
99
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1010
<Description>EZCode is a easy to ue programming language for WinForms and can help speed up your development process. Go to https://ez-code.web.app</Description>
1111
<Copyright>Copyright © 2023</Copyright>

EZ_IDE/EZCode_Syntax.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<rule style="AfterWordText">(?&lt;=\b(print|messagebox|DEVPORTAL)\b\s*).*</rule>
4040

4141
<style name="Properties" color="SkyBlue" fontStyle="Regular"/>
42-
<rule style="Properties">\b(focus:|readonly:|z:|enable:|font:|point:|points:|auto:|autosize:|multi:|multiline:|wrap:|wordwrap:|vertical:|verticalscrollbar:|horizantal:|horizantalscrollbar:|x:|y:|t:|text:|h:|height:|w:|width:|bc:|bg:|backcolor:|fc:|fg:|forecolor:|poly:|p:|image:|imagelayout:|foucs:|enable:|minwidth:|maxwidth:|minheight:|maxheight:|opacity:|showicon:|showintaskbar:|icon:|state:|type:|startposition:)</rule>
42+
<rule style="Properties">\b(focus:|readonly:|z:|enable:|font:|point:|points:|auto:|align:|autosize:|multi:|multiline:|wrap:|wordwrap:|vertical:|verticalscrollbar:|horizantal:|horizantalscrollbar:|x:|y:|t:|text:|h:|height:|w:|width:|bc:|bg:|backcolor:|fc:|fg:|forecolor:|poly:|p:|image:|imagelayout:|foucs:|enable:|minwidth:|maxwidth:|minheight:|maxheight:|opacity:|showicon:|showintaskbar:|icon:|state:|type:|startposition:)</rule>
4343

4444
<style name="ColonResponse" color="SkyBlue" fontStyle="Regular"/>
4545
<rule style="ColonResponse">\b(:length|:contains|system:|:time|:random|:isnumber|:machine|:currentfile|:currentplaydirectory|:space|:newline|:pipe|:nothing)</rule>

0 commit comments

Comments
 (0)