diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj index 7ca50c1..f0e00ed 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -571,6 +571,7 @@ + diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Qu/Sb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Qu/Sb.cs new file mode 100644 index 0000000..16e47cb --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Qu/Sb.cs @@ -0,0 +1,60 @@ +using Mesnac.Controls.Default; + +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Mesnac.Action.ChemicalWeighing.Qu +{ + public class Sb + { + List Controls; + + + public Sb(List c) + { + this.Controls = c; + + PropertyInfo[] sourcePropertyInfoList = this.GetType().GetProperties(); + foreach (PropertyInfo sourceProperty in sourcePropertyInfoList) + { + string name = sourceProperty.Name; + var pro = Controls.FirstOrDefault(x => x.Name == name) as SpecialLabelBlue; + sourceProperty.SetValue(this, pro); + } + + } + + public void Action() + { + + PropertyInfo[] sourcePropertyInfoList = this.GetType().GetProperties(); + foreach (PropertyInfo sourceProperty in sourcePropertyInfoList) + { + object value = sourceProperty.GetValue(this); + SpecialLabelBlue stu = value as SpecialLabelBlue; + if (stu.BackColor == Color.Yellow) + { + SetWhite(stu); + sourceProperty.SetValue(this, stu); + } + + } + } + + public void SetWhite(SpecialLabelBlue special) + { + special.BackColor = Color.White; + } + + public void SetLightGreen(SpecialLabelBlue special) + { + special.BackColor = Color.Yellow; + } + } +} diff --git a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml index c67666e..20ff3ae 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml @@ -1,6 +1,474 @@ + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1784, 243 + SpecialLabelBlue186 + 90, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1676, 243 + SpecialLabelBlue187 + 110, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1561, 243 + SpecialLabelBlue188 + 126, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1470, 243 + SpecialLabelBlue189 + 92, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1374, 243 + SpecialLabelBlue190 + 98, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1322, 243 + SpecialLabelBlue191 + 52, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1223, 243 + SpecialLabelBlue192 + 100, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1131, 243 + SpecialLabelBlue193 + 92, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1010, 243 + SpecialLabelBlue194 + 123, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 918, 243 + SpecialLabelBlue195 + 92, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1126, 225 + SpecialLabelBlue196 + 183, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1005, 225 + SpecialLabelBlue197 + 100, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 810, 225 + SpecialLabelBlue198 + 178, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1675, 200 + SpecialLabelBlue199 + 190, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1558, 200 + SpecialLabelBlue200 + 120, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1365, 200 + SpecialLabelBlue201 + 185, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 783, 200 + SpecialLabelBlue202 + 565, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 901, 177 + SpecialLabelBlue203 + 300, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1453, 155 + SpecialLabelBlue204 + 290, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 838, 155 + SpecialLabelBlue205 + 600, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 912, 127 + SpecialLabelBlue206 + 300, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1457, 100 + SpecialLabelBlue207 + 300, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 841, 100 + SpecialLabelBlue208 + 610, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 889, 70 + SpecialLabelBlue209 + 300, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1433, 43 + SpecialLabelBlue210 + 340, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 833, 43 + SpecialLabelBlue211 + 590, 1 + @@ -4686,9 +5154,9 @@ True MiddleCenter MintCream - 833, 71 + 833, 70 SpecialLabelBlue229 - 355, 1 + 40, 1 1844, 288 @@ -5125,7 +5593,7 @@ MintCream 819, 243 SpecialLabelBlue248 - 1070, 1 + 100, 1 @@ -5227,7 +5695,7 @@ MintCream 681, 43 SpecialLabelBlue249 - 1093, 1 + 150, 1 @@ -12940,7 +13408,7 @@ MintCream 836, 127 SpecialLabelBlue509 - 377, 1 + 70, 1 @@ -12958,7 +13426,7 @@ MintCream 834, 177 SpecialLabelBlue510 - 368, 1 + 60, 1 @@ -13102,7 +13570,7 @@ MintCream 779, 225 SpecialLabelBlue520 - 531, 1 + 31, 1 @@ -13577,9 +14045,9 @@ True MiddleCenter MintCream - 727, 201 + 727, 200 SpecialLabelBlue541 - 1136, 1 + 40, 1 @@ -13595,9 +14063,9 @@ True MiddleCenter MintCream - 743, 154 + 743, 155 SpecialLabelBlue543 - 1002, 1 + 90, 1 @@ -13615,7 +14083,7 @@ MintCream 710, 100 SpecialLabelBlue569 - 1047, 1 + 120, 1