Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
4a8a4607c8
6 files changed
+57
-94
No files matched your search
Generated
+18
@@ -123,6 +123,15 @@ namespace DyeingComputer.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Cooling 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Cooling {
|
||||
get {
|
||||
return ResourceManager.GetString("Cooling", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Curve 的本地化字符串。
|
||||
/// </summary>
|
||||
@@ -150,6 +159,15 @@ namespace DyeingComputer.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Drainage 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string Drainage {
|
||||
get {
|
||||
return ResourceManager.GetString("Drainage", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 edit 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -261,4 +261,13 @@
|
||||
<data name="WaterLevel" xml:space="preserve">
|
||||
<value>Water Level</value>
|
||||
</data>
|
||||
<data name="Washing" xml:space="preserve">
|
||||
<value>Washing</value>
|
||||
</data>
|
||||
<data name="Cooling" xml:space="preserve">
|
||||
<value>Cooling</value>
|
||||
</data>
|
||||
<data name="Drainage" xml:space="preserve">
|
||||
<value>Drainage</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -252,6 +252,12 @@
|
||||
<data name="AddWater" xml:space="preserve">
|
||||
<value>Add water</value>
|
||||
</data>
|
||||
<data name="Cooling" xml:space="preserve">
|
||||
<value>Cooling</value>
|
||||
</data>
|
||||
<data name="Drainage" xml:space="preserve">
|
||||
<value>Drainage</value>
|
||||
</data>
|
||||
<data name="Flowmeter" xml:space="preserve">
|
||||
<value>Flowmeter</value>
|
||||
</data>
|
||||
|
||||
@@ -261,4 +261,13 @@
|
||||
<data name="WaterLevel" xml:space="preserve">
|
||||
<value>水位</value>
|
||||
</data>
|
||||
<data name="Washing" xml:space="preserve">
|
||||
<value>水洗</value>
|
||||
</data>
|
||||
<data name="Cooling" xml:space="preserve">
|
||||
<value>冷却</value>
|
||||
</data>
|
||||
<data name="Drainage" xml:space="preserve">
|
||||
<value>排水</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -261,4 +261,13 @@
|
||||
<data name="WaterLevel" xml:space="preserve">
|
||||
<value>水位</value>
|
||||
</data>
|
||||
<data name="Washing" xml:space="preserve">
|
||||
<value>洗滌</value>
|
||||
</data>
|
||||
<data name="Cooling" xml:space="preserve">
|
||||
<value>冷卻</value>
|
||||
</data>
|
||||
<data name="Drainage" xml:space="preserve">
|
||||
<value>排水</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -34,14 +34,17 @@ namespace DyeingComputer.Windows
|
||||
e.Handled = !re.IsMatch(e.Text);
|
||||
}
|
||||
|
||||
string[] a = {"001","007","008","013","017", "020", "022", "031", "035", "036", "039", "040", "041", "049", "050",
|
||||
"051", "054", "055", "056","065","066","067","090","091","092","093","094" };
|
||||
|
||||
private void Form1_Load()
|
||||
{
|
||||
this.boxID.Items.Add(Properties.Resources.TemperatureControl);
|
||||
this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.WaterLevel + ")");
|
||||
this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.Flowmeter + ")");
|
||||
this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.WaterLevel + ")");
|
||||
|
||||
|
||||
this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.Cooling + ")");
|
||||
this.boxID.Items.Add(Properties.Resources.Drainage);
|
||||
|
||||
|
||||
|
||||
@@ -55,98 +58,7 @@ namespace DyeingComputer.Windows
|
||||
string text = boxNAME.Text.ToString();
|
||||
if (l == 3)
|
||||
{
|
||||
if(text == "001")
|
||||
{
|
||||
boxID.SelectedIndex = 0; //温度控制
|
||||
}
|
||||
else
|
||||
if (text == "007")
|
||||
{
|
||||
boxID.SelectedIndex = 1; //水位入水
|
||||
}
|
||||
else
|
||||
if (text == "008")
|
||||
{
|
||||
boxID.SelectedIndex = 2; //流量入水
|
||||
}
|
||||
else
|
||||
if (text == "013")
|
||||
{
|
||||
boxID.SelectedIndex = 3;//水洗
|
||||
}
|
||||
else
|
||||
if (text == "017") { }
|
||||
else
|
||||
if (text == "020") { }
|
||||
else
|
||||
if (text == "022") { }
|
||||
else
|
||||
if (text == "031") { }
|
||||
else
|
||||
if (text == "035") { }
|
||||
else
|
||||
if (text == "036") { }
|
||||
else
|
||||
if (text == "039") { }
|
||||
else
|
||||
if (text == "040") { }
|
||||
else
|
||||
if (text == "041") { }
|
||||
else
|
||||
if (text == "049") { }
|
||||
else
|
||||
if (text == "050") { }
|
||||
else
|
||||
if (text == "051") { }
|
||||
else
|
||||
if (text == "054") { }
|
||||
else
|
||||
if (text == "055") { }
|
||||
else
|
||||
if (text == "056") { }
|
||||
else
|
||||
if (text == "065") { }
|
||||
else
|
||||
if (text == "066") { }
|
||||
else
|
||||
if (text == "067") { }
|
||||
else
|
||||
if (text == "072") { }
|
||||
else
|
||||
if (text == "073") { }
|
||||
else
|
||||
if (text == "074") { }
|
||||
else
|
||||
if (text == "075") { }
|
||||
else
|
||||
if (text == "076") { }
|
||||
else
|
||||
if (text == "077") { }
|
||||
else
|
||||
if (text == "070") { }
|
||||
else
|
||||
if (text == "090") { }
|
||||
else
|
||||
if (text == "091") { }
|
||||
else
|
||||
if (text == "092") { }
|
||||
else
|
||||
if (text == "093") { }
|
||||
else
|
||||
if (text == "094") { }
|
||||
else
|
||||
if (text == "095") { }
|
||||
else
|
||||
if (text == "096") { }
|
||||
else
|
||||
if (text == "097") { }
|
||||
else
|
||||
if (text == "101") { }
|
||||
else
|
||||
if (text == "102") { }
|
||||
else
|
||||
if (text == "103") { }
|
||||
|
||||
boxID.SelectedIndex = Array.IndexOf(a, text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user