sc 1 year ago
parent
commit
318bbd1a78
  1. 198
      Properties/Resources.Designer.cs
  2. 66
      Properties/Resources.en-US.resx
  3. 66
      Properties/Resources.resx
  4. 66
      Properties/Resources.zh-CN.resx
  5. 66
      Properties/Resources.zh-TW.resx
  6. 9
      Windows/ViewStep.xaml
  7. 64
      Windows/ViewStep.xaml.cs

198
Properties/Resources.Designer.cs

@ -78,6 +78,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 AddTheMedicine 的本地化字符串。
/// </summary>
public static string AddTheMedicine {
get {
return ResourceManager.GetString("AddTheMedicine", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Add water 的本地化字符串。 /// 查找类似 Add water 的本地化字符串。
/// </summary> /// </summary>
@ -105,6 +114,42 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 CallDistribution 的本地化字符串。
/// </summary>
public static string CallDistribution {
get {
return ResourceManager.GetString("CallDistribution", resourceCulture);
}
}
/// <summary>
/// 查找类似 CallPreparation 的本地化字符串。
/// </summary>
public static string CallPreparation {
get {
return ResourceManager.GetString("CallPreparation", resourceCulture);
}
}
/// <summary>
/// 查找类似 CallWorkers 的本地化字符串。
/// </summary>
public static string CallWorkers {
get {
return ResourceManager.GetString("CallWorkers", resourceCulture);
}
}
/// <summary>
/// 查找类似 ClothIntake 的本地化字符串。
/// </summary>
public static string ClothIntake {
get {
return ResourceManager.GetString("ClothIntake", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Code 的本地化字符串。 /// 查找类似 Code 的本地化字符串。
/// </summary> /// </summary>
@ -150,6 +195,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 Depressurized 的本地化字符串。
/// </summary>
public static string Depressurized {
get {
return ResourceManager.GetString("Depressurized", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Directives 的本地化字符串。 /// 查找类似 Directives 的本地化字符串。
/// </summary> /// </summary>
@ -177,6 +231,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 End of program 的本地化字符串。
/// </summary>
public static string End {
get {
return ResourceManager.GetString("End", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 EndTime 的本地化字符串。 /// 查找类似 EndTime 的本地化字符串。
/// </summary> /// </summary>
@ -222,6 +285,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 Function 的本地化字符串。
/// </summary>
public static string Function {
get {
return ResourceManager.GetString("Function", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 History 的本地化字符串。 /// 查找类似 History 的本地化字符串。
/// </summary> /// </summary>
@ -258,6 +330,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 Invalid features 的本地化字符串。
/// </summary>
public static string Invalidfeatures {
get {
return ResourceManager.GetString("Invalidfeatures", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 LineUp 的本地化字符串。 /// 查找类似 LineUp 的本地化字符串。
/// </summary> /// </summary>
@ -303,6 +384,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 OutTheCloth 的本地化字符串。
/// </summary>
public static string OutTheCloth {
get {
return ResourceManager.GetString("OutTheCloth", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Parameter 的本地化字符串。 /// 查找类似 Parameter 的本地化字符串。
/// </summary> /// </summary>
@ -312,6 +402,51 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 PHControl 的本地化字符串。
/// </summary>
public static string PHControl {
get {
return ResourceManager.GetString("PHControl", resourceCulture);
}
}
/// <summary>
/// 查找类似 PHDetection 的本地化字符串。
/// </summary>
public static string PHDetection {
get {
return ResourceManager.GetString("PHDetection", resourceCulture);
}
}
/// <summary>
/// 查找类似 PHTemperatureControl 的本地化字符串。
/// </summary>
public static string PHTemperatureControl {
get {
return ResourceManager.GetString("PHTemperatureControl", resourceCulture);
}
}
/// <summary>
/// 查找类似 PrepareMedications 的本地化字符串。
/// </summary>
public static string PrepareMedications {
get {
return ResourceManager.GetString("PrepareMedications", resourceCulture);
}
}
/// <summary>
/// 查找类似 Pressurized 的本地化字符串。
/// </summary>
public static string Pressurized {
get {
return ResourceManager.GetString("Pressurized", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 back 的本地化字符串。 /// 查找类似 back 的本地化字符串。
/// </summary> /// </summary>
@ -339,6 +474,42 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 PumpDrainage 的本地化字符串。
/// </summary>
public static string PumpDrainage {
get {
return ResourceManager.GetString("PumpDrainage", resourceCulture);
}
}
/// <summary>
/// 查找类似 PumpSpeed 的本地化字符串。
/// </summary>
public static string PumpSpeed {
get {
return ResourceManager.GetString("PumpSpeed", resourceCulture);
}
}
/// <summary>
/// 查找类似 PumpStart 的本地化字符串。
/// </summary>
public static string PumpStart {
get {
return ResourceManager.GetString("PumpStart", resourceCulture);
}
}
/// <summary>
/// 查找类似 PumpStops 的本地化字符串。
/// </summary>
public static string PumpStops {
get {
return ResourceManager.GetString("PumpStops", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Quit 的本地化字符串。 /// 查找类似 Quit 的本地化字符串。
/// </summary> /// </summary>
@ -348,6 +519,15 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 RapidAcidAddition 的本地化字符串。
/// </summary>
public static string RapidAcidAddition {
get {
return ResourceManager.GetString("RapidAcidAddition", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Ready 的本地化字符串。 /// 查找类似 Ready 的本地化字符串。
/// </summary> /// </summary>
@ -393,6 +573,24 @@ namespace DyeingComputer.Properties {
} }
} }
/// <summary>
/// 查找类似 RunningTime 的本地化字符串。
/// </summary>
public static string RunningTime {
get {
return ResourceManager.GetString("RunningTime", resourceCulture);
}
}
/// <summary>
/// 查找类似 Sampling 的本地化字符串。
/// </summary>
public static string Sampling {
get {
return ResourceManager.GetString("Sampling", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 Save 的本地化字符串。 /// 查找类似 Save 的本地化字符串。
/// </summary> /// </summary>

66
Properties/Resources.en-US.resx

@ -270,4 +270,70 @@
<data name="Drainage" xml:space="preserve"> <data name="Drainage" xml:space="preserve">
<value>Drainage</value> <value>Drainage</value>
</data> </data>
<data name="PumpDrainage" xml:space="preserve">
<value>Pump Drainage</value>
</data>
<data name="OutTheCloth" xml:space="preserve">
<value>Out The Cloth</value>
</data>
<data name="RunningTime" xml:space="preserve">
<value>Running Time</value>
</data>
<data name="ClothIntake" xml:space="preserve">
<value>Put in the cloth</value>
</data>
<data name="AddTheMedicine" xml:space="preserve">
<value>Add The Medicine</value>
</data>
<data name="CallDistribution" xml:space="preserve">
<value>Call Distribution</value>
</data>
<data name="CallPreparation" xml:space="preserve">
<value>Call Preparation</value>
</data>
<data name="CallWorkers" xml:space="preserve">
<value>Call Workers</value>
</data>
<data name="Depressurized" xml:space="preserve">
<value>Depressurized</value>
</data>
<data name="End" xml:space="preserve">
<value>End of program</value>
</data>
<data name="PHControl" xml:space="preserve">
<value>PH Control</value>
</data>
<data name="PHDetection" xml:space="preserve">
<value>PH Detection</value>
</data>
<data name="PHTemperatureControl" xml:space="preserve">
<value>PH Temperature Control</value>
</data>
<data name="PrepareMedications" xml:space="preserve">
<value>Prepare Medications</value>
</data>
<data name="Pressurized" xml:space="preserve">
<value>Pressurized</value>
</data>
<data name="PumpSpeed" xml:space="preserve">
<value>Pump Speed</value>
</data>
<data name="PumpStart" xml:space="preserve">
<value>Pump Start</value>
</data>
<data name="PumpStops" xml:space="preserve">
<value>Pump Stops</value>
</data>
<data name="RapidAcidAddition" xml:space="preserve">
<value>Rapid Acid Addition</value>
</data>
<data name="Sampling" xml:space="preserve">
<value>Sampling</value>
</data>
<data name="Invalidfeatures" xml:space="preserve">
<value>Invalid features</value>
</data>
<data name="Function" xml:space="preserve">
<value>Function</value>
</data>
</root> </root>

66
Properties/Resources.resx

@ -270,4 +270,70 @@
<data name="WaterLevel" xml:space="preserve"> <data name="WaterLevel" xml:space="preserve">
<value>Water Level</value> <value>Water Level</value>
</data> </data>
<data name="ClothIntake" xml:space="preserve">
<value>ClothIntake</value>
</data>
<data name="OutTheCloth" xml:space="preserve">
<value>OutTheCloth</value>
</data>
<data name="PumpDrainage" xml:space="preserve">
<value>PumpDrainage</value>
</data>
<data name="RunningTime" xml:space="preserve">
<value>RunningTime</value>
</data>
<data name="AddTheMedicine" xml:space="preserve">
<value>AddTheMedicine</value>
</data>
<data name="CallDistribution" xml:space="preserve">
<value>CallDistribution</value>
</data>
<data name="CallPreparation" xml:space="preserve">
<value>CallPreparation</value>
</data>
<data name="CallWorkers" xml:space="preserve">
<value>CallWorkers</value>
</data>
<data name="Depressurized" xml:space="preserve">
<value>Depressurized</value>
</data>
<data name="End" xml:space="preserve">
<value>End of program</value>
</data>
<data name="PHControl" xml:space="preserve">
<value>PHControl</value>
</data>
<data name="PHDetection" xml:space="preserve">
<value>PHDetection</value>
</data>
<data name="PHTemperatureControl" xml:space="preserve">
<value>PHTemperatureControl</value>
</data>
<data name="PrepareMedications" xml:space="preserve">
<value>PrepareMedications</value>
</data>
<data name="Pressurized" xml:space="preserve">
<value>Pressurized</value>
</data>
<data name="PumpSpeed" xml:space="preserve">
<value>PumpSpeed</value>
</data>
<data name="PumpStart" xml:space="preserve">
<value>PumpStart</value>
</data>
<data name="PumpStops" xml:space="preserve">
<value>PumpStops</value>
</data>
<data name="RapidAcidAddition" xml:space="preserve">
<value>RapidAcidAddition</value>
</data>
<data name="Sampling" xml:space="preserve">
<value>Sampling</value>
</data>
<data name="Function" xml:space="preserve">
<value>Function</value>
</data>
<data name="Invalidfeatures" xml:space="preserve">
<value>Invalid features</value>
</data>
</root> </root>

66
Properties/Resources.zh-CN.resx

@ -270,4 +270,70 @@
<data name="Drainage" xml:space="preserve"> <data name="Drainage" xml:space="preserve">
<value>排水</value> <value>排水</value>
</data> </data>
<data name="PumpDrainage" xml:space="preserve">
<value>主泵排水</value>
</data>
<data name="RunningTime" xml:space="preserve">
<value>运转</value>
</data>
<data name="ClothIntake" xml:space="preserve">
<value>准备入布</value>
</data>
<data name="OutTheCloth" xml:space="preserve">
<value>准备出布</value>
</data>
<data name="CallDistribution" xml:space="preserve">
<value>呼叫输送</value>
</data>
<data name="AddTheMedicine" xml:space="preserve">
<value>加药</value>
</data>
<data name="CallPreparation" xml:space="preserve">
<value>呼叫准备</value>
</data>
<data name="CallWorkers" xml:space="preserve">
<value>呼叫操作员</value>
</data>
<data name="Depressurized" xml:space="preserve">
<value>减压</value>
</data>
<data name="End" xml:space="preserve">
<value>程序结束</value>
</data>
<data name="PHControl" xml:space="preserve">
<value>PH控制</value>
</data>
<data name="PHDetection" xml:space="preserve">
<value>PH检测</value>
</data>
<data name="PHTemperatureControl" xml:space="preserve">
<value>PH温度控制</value>
</data>
<data name="PrepareMedications" xml:space="preserve">
<value>备药</value>
</data>
<data name="Pressurized" xml:space="preserve">
<value>加压</value>
</data>
<data name="PumpSpeed" xml:space="preserve">
<value>主泵速</value>
</data>
<data name="PumpStart" xml:space="preserve">
<value>主泵启动</value>
</data>
<data name="PumpStops" xml:space="preserve">
<value>主泵停止</value>
</data>
<data name="RapidAcidAddition" xml:space="preserve">
<value>快速加酸</value>
</data>
<data name="Sampling" xml:space="preserve">
<value>取样</value>
</data>
<data name="Invalidfeatures" xml:space="preserve">
<value>功能无效</value>
</data>
<data name="Function" xml:space="preserve">
<value>功能</value>
</data>
</root> </root>

66
Properties/Resources.zh-TW.resx

@ -270,4 +270,70 @@
<data name="Drainage" xml:space="preserve"> <data name="Drainage" xml:space="preserve">
<value>排水</value> <value>排水</value>
</data> </data>
<data name="PumpDrainage" xml:space="preserve">
<value>泵排水</value>
</data>
<data name="RunningTime" xml:space="preserve">
<value>運轉</value>
</data>
<data name="ClothIntake" xml:space="preserve">
<value>準備入布</value>
</data>
<data name="OutTheCloth" xml:space="preserve">
<value>準備出布</value>
</data>
<data name="AddTheMedicine" xml:space="preserve">
<value>加藥</value>
</data>
<data name="CallDistribution" xml:space="preserve">
<value>呼叫輸送</value>
</data>
<data name="CallPreparation" xml:space="preserve">
<value>呼叫準備</value>
</data>
<data name="CallWorkers" xml:space="preserve">
<value>呼叫操作員</value>
</data>
<data name="Depressurized" xml:space="preserve">
<value>減壓</value>
</data>
<data name="End" xml:space="preserve">
<value>程式結束</value>
</data>
<data name="PHControl" xml:space="preserve">
<value>PH控制</value>
</data>
<data name="PHTemperatureControl" xml:space="preserve">
<value>PH溫度控制</value>
</data>
<data name="PrepareMedications" xml:space="preserve">
<value>備藥</value>
</data>
<data name="Pressurized" xml:space="preserve">
<value>加壓</value>
</data>
<data name="PumpSpeed" xml:space="preserve">
<value>主泵速</value>
</data>
<data name="PumpStart" xml:space="preserve">
<value>主泵啟動</value>
</data>
<data name="PumpStops" xml:space="preserve">
<value>主泵停止</value>
</data>
<data name="RapidAcidAddition" xml:space="preserve">
<value>快速加酸</value>
</data>
<data name="Sampling" xml:space="preserve">
<value>取樣</value>
</data>
<data name="PHDetection" xml:space="preserve">
<value>PH檢測</value>
</data>
<data name="Invalidfeatures" xml:space="preserve">
<value>無效的圖徵</value>
</data>
<data name="Function" xml:space="preserve">
<value>機能</value>
</data>
</root> </root>

9
Windows/ViewStep.xaml

@ -4,16 +4,17 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DyeingComputer.Windows" xmlns:local="clr-namespace:DyeingComputer.Windows"
xmlns:lang="clr-namespace:DyeingComputer.Properties"
mc:Ignorable="d" mc:Ignorable="d"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
ResizeMode="NoResize" ResizeMode="NoResize"
Title="SUNLIGHT 800" Height="450" Width="400"> Title="SUNLIGHT 800" Height="450" Width="400">
<Grid FocusManager.FocusedElement="{Binding ElementName=box}"> <Grid FocusManager.FocusedElement="{Binding ElementName=box}">
<TextBlock x:Name="code" HorizontalAlignment="Left" Height="30" Margin="10,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/> <TextBlock Text="{x:Static lang:Resources.Code}" HorizontalAlignment="Left" Height="30" Margin="10,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
<TextBlock x:Name="name" HorizontalAlignment="Left" Height="30" Margin="10,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/> <TextBlock Text="{x:Static lang:Resources.Function}" HorizontalAlignment="Left" Height="30" Margin="10,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="150" FontSize="20" Background="#FFEFEEEE"/>
<ComboBox x:Name="boxID" HorizontalAlignment="Right" Height="30" Margin="0,60,10,0" VerticalAlignment="Top" Width="230" FontSize="20" Text="12345125" SelectionChanged="boxID_SelectionChanged"/> <ComboBox x:Name="boxID" HorizontalAlignment="Right" Height="30" Margin="0,60,10,0" VerticalAlignment="Top" Width="230" FontSize="20" Text="12345125" SelectionChanged="BoxID_SelectionChanged"/>
<TextBox x:Name="boxNAME" HorizontalAlignment="Right" Height="30" Margin="0,20,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True" <TextBox x:Name="boxNAME" HorizontalAlignment="Right" Height="30" Margin="0,20,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
TextChanged="TextBox_TextChanged" PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right"/> TextChanged="TextBox_TextChanged" PreviewTextInput="Tb_KeyPress" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" MaxLength="3"/>
<Grid Margin="5,100,5,5"> <Grid Margin="5,100,5,5">
<ContentControl x:Name="container"/> <ContentControl x:Name="container"/>
</Grid> </Grid>

64
Windows/ViewStep.xaml.cs

@ -34,37 +34,65 @@ namespace DyeingComputer.Windows
e.Handled = !re.IsMatch(e.Text); e.Handled = !re.IsMatch(e.Text);
} }
string[] a = {"001","007","008","013","017", "020", "022", "031", "035", "036", "039", "040", "041", "049", "050", private readonly 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" }; "051", "054", "055", "056","064","065","066","067","090","091","093","094" };
private void Form1_Load() private void Form1_Load()
{ {
this.boxID.Items.Add(Properties.Resources.TemperatureControl); this.boxID.Items.Add(Properties.Resources.TemperatureControl);//温度控制001
this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.WaterLevel + ")"); this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.WaterLevel + ")");//水位进水007
this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.Flowmeter + ")"); this.boxID.Items.Add(Properties.Resources.AddWater + "(" + Properties.Resources.Flowmeter + ")");//流量进水008
this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.WaterLevel + ")"); this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.WaterLevel + ")");//水位水洗013
this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.Cooling + ")"); this.boxID.Items.Add(Properties.Resources.Washing + "(" + Properties.Resources.Cooling + ")");//降温水洗017
this.boxID.Items.Add(Properties.Resources.Drainage); this.boxID.Items.Add(Properties.Resources.Drainage);//排水020
this.boxID.Items.Add(Properties.Resources.PumpDrainage);//主泵排水022
this.boxID.Items.Add(Properties.Resources.RunningTime);//运转031
this.boxID.Items.Add(Properties.Resources.ClothIntake);//入布035
this.boxID.Items.Add(Properties.Resources.OutTheCloth);//出布036
this.boxID.Items.Add(Properties.Resources.CallWorkers);//呼叫操作员039
this.boxID.Items.Add(Properties.Resources.Sampling);//取样040
this.boxID.Items.Add(Properties.Resources.End);//程序结束041
this.boxID.Items.Add(Properties.Resources.Await);//等待049
this.boxID.Items.Add(Properties.Resources.Pressurized);//加压050
this.boxID.Items.Add(Properties.Resources.Depressurized);//减压051
this.boxID.Items.Add(Properties.Resources.PumpSpeed);//泵速度054
this.boxID.Items.Add(Properties.Resources.PumpStart);//泵启动055
this.boxID.Items.Add(Properties.Resources.PumpStops);//泵停止056
this.boxID.Items.Add(Properties.Resources.PrepareMedications);//备药064
this.boxID.Items.Add(Properties.Resources.AddTheMedicine);//加药065
this.boxID.Items.Add(Properties.Resources.CallDistribution);//呼叫输送066
this.boxID.Items.Add(Properties.Resources.CallPreparation);//呼叫准备067
this.boxID.Items.Add(Properties.Resources.RapidAcidAddition);//快速加酸090
this.boxID.Items.Add(Properties.Resources.PHTemperatureControl);//ph温度控制091
this.boxID.Items.Add(Properties.Resources.PHDetection);//ph检测093
this.boxID.Items.Add(Properties.Resources.PHControl);//ph控制094
} }
private void TextBox_TextChanged(object sender, TextChangedEventArgs e) private void TextBox_TextChanged(object sender, TextChangedEventArgs e)//输入事件
{ {
int l = boxNAME.Text.Length; int l = boxNAME.Text.Length;
string text = boxNAME.Text.ToString(); string text = boxNAME.Text.ToString();
if (l == 3) if (l == 3)
{ {
boxID.SelectedIndex = Array.IndexOf(a, text); int g = Array.IndexOf(a, text);//数组索引
if (g != -1)
{
boxID.SelectedIndex = g;//有效索引传入
} else
{
boxID.SelectedIndex =-1;
// boxNAME.Text = Properties.Resources.Invalidfeatures;//功能无效
}
} }
} }
private void boxID_SelectionChanged(object sender, SelectionChangedEventArgs e) private void BoxID_SelectionChanged(object sender, SelectionChangedEventArgs e)//下拉框选择事件
{ {
if (boxID.SelectedIndex !=-1)
{
int i = boxID.SelectedIndex;
boxNAME.Text = a.ElementAt(i);
}
} }
} }
} }

Loading…
Cancel
Save