Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Dc.App/Views/ConfigEntryEditorWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
<TextBlock Grid.Row="0" Grid.Column="0" Text="Key:"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Key, UpdateSourceTrigger=PropertyChanged}"
VerticalContentAlignment="Center"
IsReadOnly="{Binding KeyIsReadOnly}" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="Value:"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" />
<TextBox Grid.Row="1" Grid.Column="1" VerticalContentAlignment="Center" Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</StackPanel>
</DockPanel>
Expand Down
9 changes: 6 additions & 3 deletions src/Dc.App/Views/TaskEditorWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<TextBlock Grid.Row="0" Grid.Column="0" Text="名称:"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
<TextBox Grid.Row="0" Grid.Column="1" AutomationProperties.AutomationId="TaskName"
VerticalContentAlignment="Center"
Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}"
controls:Placeholder.Text="可选,如「1#锅炉 UA」" />

Expand All @@ -78,20 +79,22 @@
<TextBlock Grid.Row="2" Grid.Column="0" Text="{Binding ServerLabel}"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
<TextBox Grid.Row="2" Grid.Column="1" AutomationProperties.AutomationId="TaskServer" Text="{Binding Server, UpdateSourceTrigger=PropertyChanged}"
VerticalContentAlignment="Center"
controls:Placeholder.Text="{Binding ServerPlaceholder}"
ToolTip="{Binding ServerToolTip}" />

<TextBlock Grid.Row="3" Grid.Column="0" Text="节点:"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center"
Visibility="{Binding ShowClassicOnlyFields, Converter={StaticResource BoolToVis}}" />
<TextBox Grid.Row="3" Grid.Column="1" AutomationProperties.AutomationId="TaskNode" Text="{Binding Node, UpdateSourceTrigger=PropertyChanged}"
VerticalContentAlignment="Center"
controls:Placeholder.Text="主机名或 IP"
Visibility="{Binding ShowClassicOnlyFields, Converter={StaticResource BoolToVis}}" />

<TextBlock Grid.Row="4" Grid.Column="0" Text="采样间隔:" Margin="0,7,0,0"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Top" />
<StackPanel Grid.Row="4" Grid.Column="1" Margin="0,0,0,6">
<TextBox Height="30" AutomationProperties.AutomationId="TaskInterval" Text="{Binding Interval, UpdateSourceTrigger=PropertyChanged}" />
<TextBox VerticalContentAlignment="Center" AutomationProperties.AutomationId="TaskInterval" Text="{Binding Interval, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Text="毫秒 · 必须 &gt; 0" FontSize="11" Margin="2,3,0,0"
Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel>
Expand All @@ -101,14 +104,14 @@
Visibility="{Binding ShowClassicOnlyFields, Converter={StaticResource BoolToVis}}" />
<StackPanel Grid.Row="5" Grid.Column="1" Margin="0,0,0,6"
Visibility="{Binding ShowClassicOnlyFields, Converter={StaticResource BoolToVis}}">
<TextBox Height="30" AutomationProperties.AutomationId="TaskDeviation" Text="{Binding Deviation, UpdateSourceTrigger=PropertyChanged}" />
<TextBox VerticalContentAlignment="Center" AutomationProperties.AutomationId="TaskDeviation" Text="{Binding Deviation, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Text="百分比 0 – 100" FontSize="11" Margin="2,3,0,0"
Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel>

<TextBlock Grid.Row="6" Grid.Column="0" Text="TCP 地址:"
Foreground="{DynamicResource TextFillColorSecondaryBrush}" VerticalAlignment="Center" />
<TextBox Grid.Row="6" Grid.Column="1" AutomationProperties.AutomationId="TaskTcpAddress" Text="{Binding TcpAddress, UpdateSourceTrigger=PropertyChanged}" />
<TextBox Grid.Row="6" Grid.Column="1" AutomationProperties.AutomationId="TaskTcpAddress" VerticalContentAlignment="Center" Text="{Binding TcpAddress, UpdateSourceTrigger=PropertyChanged}" />
</Grid>

<!-- 安全连接:仅 UA 协议可见 -->
Expand Down
Loading