|
96 | 96 | <!-- AlwaysTrueRuleset Template --> |
97 | 97 | <DataTemplate DataType="{x:Type local:AlwaysTrueRulesetWrapper}"> |
98 | 98 | <StackPanel> |
99 | | - <TextBlock Text="总是为真" FontWeight="SemiBold" Margin="0,0,0,5" /> |
100 | | - <TextBlock Text="无论在什么情况下,该规则都会返回真。" Foreground="{DynamicResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" /> |
| 99 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_AlwaysTrueRuleset], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" FontWeight="SemiBold" Margin="0,0,0,5" /> |
| 100 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_AlwaysTrueRulesetDescription], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Foreground="{DynamicResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" /> |
101 | 101 | </StackPanel> |
102 | 102 | </DataTemplate> |
103 | 103 |
|
104 | 104 | <!-- AlwaysFalseRuleset Template --> |
105 | 105 | <DataTemplate DataType="{x:Type local:AlwaysFalseRulesetWrapper}"> |
106 | 106 | <StackPanel> |
107 | | - <TextBlock Text="总是为假" FontWeight="SemiBold" Margin="0,0,0,5" /> |
108 | | - <TextBlock Text="无论在什么情况下,该规则都会返回假。" Foreground="{DynamicResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" /> |
| 107 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_AlwaysFalseRuleset], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" FontWeight="SemiBold" Margin="0,0,0,5" /> |
| 108 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_AlwaysFalseRulesetDescription], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Foreground="{DynamicResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" /> |
109 | 109 | </StackPanel> |
110 | 110 | </DataTemplate> |
111 | 111 |
|
112 | 112 | <!-- InstanceStatusRuleset Template --> |
113 | 113 | <DataTemplate DataType="{x:Type local:InstanceStatusRulesetWrapper}"> |
114 | 114 | <StackPanel> |
115 | | - <TextBlock Text="实例状态" FontWeight="SemiBold" Margin="0,0,0,5" /> |
| 115 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_InstanceStatus], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" FontWeight="SemiBold" Margin="0,0,0,5" /> |
116 | 116 | <ComboBox SelectedValue="{Binding TargetStatus}" SelectedValuePath="Tag" ui:ControlHelper.Header="{Binding [ConsoleCommand_EventTrigger_TargetStatus], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Width="200"> |
117 | 117 | <ComboBoxItem Content="{Binding [Status_Running], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Tag="Running" /> |
118 | 118 | <ComboBoxItem Content="{Binding [Status_Stopped], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Tag="Stopped" /> |
|
204 | 204 | <Expander.Header> |
205 | 205 | <Grid VerticalAlignment="Center" Margin="0,10,-10,10"> |
206 | 206 | <StackPanel Orientation="Horizontal"> |
207 | | - <TextBlock Text="规则集" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,0,10,0" /> |
208 | | - <TextBlock Text="满足以下条件时执行行动" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="{DynamicResource TextFillColorSecondaryBrush}" /> |
| 207 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_Ruleset], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,0,10,0" /> |
| 208 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_RulesetConditionHint], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="{DynamicResource TextFillColorSecondaryBrush}" /> |
209 | 209 |
|
210 | 210 | <ui:DropDownButton Content="{Binding [Add], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Margin="20,0,0,0"> |
211 | 211 | <ui:DropDownButton.Flyout> |
212 | 212 | <ui:MenuFlyout Placement="Bottom"> |
213 | | - <MenuItem Header="总是为真" Click="AddAlwaysTrueRuleset_Click" /> |
214 | | - <MenuItem Header="总是为假" Click="AddAlwaysFalseRuleset_Click" /> |
215 | | - <MenuItem Header="实例状态" Click="AddInstanceStatusRuleset_Click" /> |
| 213 | + <MenuItem Header="{Binding [ConsoleCommand_EventTrigger_AlwaysTrueRuleset], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Click="AddAlwaysTrueRuleset_Click" /> |
| 214 | + <MenuItem Header="{Binding [ConsoleCommand_EventTrigger_AlwaysFalseRuleset], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Click="AddAlwaysFalseRuleset_Click" /> |
| 215 | + <MenuItem Header="{Binding [ConsoleCommand_EventTrigger_InstanceStatus], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Click="AddInstanceStatusRuleset_Click" /> |
216 | 216 | </ui:MenuFlyout> |
217 | 217 | </ui:DropDownButton.Flyout> |
218 | 218 | </ui:DropDownButton> |
|
247 | 247 | <Grid VerticalAlignment="Center" Margin="0,10,-10,10"> |
248 | 248 | <StackPanel Orientation="Horizontal"> |
249 | 249 | <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_Event], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,0,10,0" /> |
250 | | - <TextBlock Text="执行方式" VerticalAlignment="Center" Margin="0,0,10,0" /> |
| 250 | + <TextBlock Text="{Binding [ConsoleCommand_EventTrigger_ActionExecutionMode], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" VerticalAlignment="Center" Margin="0,0,10,0" /> |
251 | 251 | <ComboBox SelectedValue="{Binding Rule.ActionExecutionMode}" SelectedValuePath="Tag" Width="120"> |
252 | | - <ComboBoxItem Content="顺序" Tag="Sequential" /> |
253 | | - <ComboBoxItem Content="并行" Tag="Parallel" /> |
| 252 | + <ComboBoxItem Content="{Binding [ConsoleCommand_EventTrigger_Sequential], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Tag="Sequential" /> |
| 253 | + <ComboBoxItem Content="{Binding [ConsoleCommand_EventTrigger_Parallel], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Tag="Parallel" /> |
254 | 254 | </ComboBox> |
255 | 255 |
|
256 | 256 | <ui:DropDownButton Content="{Binding [Add], Source={x:Static i18n:Lang.Tr}, Mode=OneWay}" Margin="20,0,0,0"> |
|
0 commit comments