|
|
|
|
@ -5,17 +5,19 @@ |
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
|
xmlns:local="clr-namespace:RobotClientWpf" |
|
|
|
|
xmlns:views="clr-namespace:RobotClientWpf.Views" |
|
|
|
|
xmlns:dj="clr-namespace:DJ;assembly=NLogViewer" |
|
|
|
|
mc:Ignorable="d" FontSize="15" |
|
|
|
|
Title="Challenge UI" Height="700" Width="1200" WindowStartupLocation="CenterScreen" ResizeMode="NoResize"> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="40"/> |
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
<RowDefinition Height="150"/> |
|
|
|
|
<RowDefinition Height="30"/> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="5"> |
|
|
|
|
<Label HorizontalAlignment="Center">MQTT Broker IP: </Label> |
|
|
|
|
<Label HorizontalAlignment="Center">MQTT Broker IP:</Label> |
|
|
|
|
<TextBox x:Name="tbIp" Width="120" Height="25" FontSize="15" TextAlignment="Left" Margin="10 0 0 0">192.168.156.156</TextBox> |
|
|
|
|
<Button x:Name="btnConnectDisconnect" Content="Connect" Width="100" Margin="20 0 0 0" Click="btnConnectDisconnect_Click"></Button> |
|
|
|
|
</StackPanel> |
|
|
|
|
@ -46,7 +48,31 @@ |
|
|
|
|
</TabItem> |
|
|
|
|
</TabControl> |
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal"> |
|
|
|
|
<dj:NLogViewer Grid.Row="2" Margin="10 0 10 0" DebugForeground="Black" MaxCount="150" ErrorForeground="Black" FatalForeground="Black" TraceForeground="Black" InfoForeground="Black" WarnForeground="Black"> |
|
|
|
|
<dj:NLogViewer.WarnBackground> |
|
|
|
|
<SolidColorBrush Color="#FFFF9D00" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.WarnBackground> |
|
|
|
|
<dj:NLogViewer.TraceBackground> |
|
|
|
|
<SolidColorBrush Color="#FF9B9B9B" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.TraceBackground> |
|
|
|
|
<dj:NLogViewer.InfoBackground> |
|
|
|
|
<SolidColorBrush Color="#FF9B9B9B" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.InfoBackground> |
|
|
|
|
<dj:NLogViewer.DebugBackground> |
|
|
|
|
<SolidColorBrush Color="#FF003DC3" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.DebugBackground> |
|
|
|
|
<dj:NLogViewer.ErrorBackground> |
|
|
|
|
<SolidColorBrush Color="#FFFF2E00" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.ErrorBackground> |
|
|
|
|
<dj:NLogViewer.FatalBackground> |
|
|
|
|
<SolidColorBrush Color="Red" Opacity="0.5"/> |
|
|
|
|
</dj:NLogViewer.FatalBackground> |
|
|
|
|
</dj:NLogViewer> |
|
|
|
|
<!--<RichTextBox x:Name="rtbLogs" Grid.Row="2" Margin="10 0 10 0" IsReadOnly="True"> |
|
|
|
|
|
|
|
|
|
</RichTextBox>--> |
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal"> |
|
|
|
|
<TextBlock x:Name="tbBottomMessage" FontSize="15" Margin="10 5"/> |
|
|
|
|
</StackPanel> |
|
|
|
|
</Grid> |
|
|
|
|
|