159 lines
6.5 KiB
XML
159 lines
6.5 KiB
XML
<UserControl x:Class="OperationControl.Views.ConfigConexaoView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Background="#161616">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Cards principais -->
|
|
<Grid Grid.Row="0" Margin="12,12,12,8">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Rede -->
|
|
<Border Grid.Column="0"
|
|
Margin="8"
|
|
Padding="18"
|
|
CornerRadius="10"
|
|
BorderThickness="2"
|
|
Background="#202020"
|
|
BorderBrush="{Binding CorBordaRede}">
|
|
<StackPanel VerticalAlignment="Center">
|
|
<TextBlock Text="REDE"
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
Foreground="White"/>
|
|
|
|
<TextBlock Text="🌐"
|
|
FontSize="52"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,8,0,8"/>
|
|
|
|
<TextBlock Text="{Binding StatusRedeTexto}"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
HorizontalAlignment="Center"
|
|
Foreground="{Binding CorStatusRede}"
|
|
Margin="0,0,0,8"/>
|
|
|
|
<TextBlock Text="{Binding DetalhesRede}"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Center"
|
|
Foreground="#DDDDDD"
|
|
Margin="0,0,0,12"/>
|
|
|
|
<Button Content="Configurar rede"
|
|
Width="180"
|
|
HorizontalAlignment="Center"
|
|
Command="{Binding AbrirConfigRedeCommand}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- GNSS -->
|
|
<Border Grid.Column="1"
|
|
Margin="8"
|
|
Padding="18"
|
|
CornerRadius="10"
|
|
BorderThickness="2"
|
|
Background="#202020"
|
|
BorderBrush="{Binding CorBordaGnss}">
|
|
<StackPanel VerticalAlignment="Center">
|
|
<TextBlock Text="GNSS"
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
Foreground="White"/>
|
|
|
|
<TextBlock Text="📡"
|
|
FontSize="52"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,8,0,8"/>
|
|
|
|
<TextBlock Text="{Binding StatusGnssTexto}"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
HorizontalAlignment="Center"
|
|
Foreground="{Binding CorStatusGnss}"
|
|
Margin="0,0,0,8"/>
|
|
|
|
<TextBlock Text="{Binding DetalhesGnss}"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Center"
|
|
Foreground="#DDDDDD"
|
|
Margin="0,0,0,12"/>
|
|
|
|
<Button Content="Ver detalhes GNSS"
|
|
Width="180"
|
|
HorizontalAlignment="Center"
|
|
Command="{Binding AbrirDetalhesGnssCommand}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<!-- Seleção do modo -->
|
|
<Border Grid.Row="1"
|
|
Margin="20,0,20,8"
|
|
Padding="16"
|
|
Background="#202020"
|
|
CornerRadius="10"
|
|
BorderBrush="#3A3A3A"
|
|
BorderThickness="1">
|
|
<StackPanel>
|
|
<TextBlock Text="Tipo de operação"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Foreground="White"
|
|
Margin="0,0,0,10"/>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<RadioButton Content="Automático"
|
|
GroupName="ModoOperacao"
|
|
Margin="0,0,20,0"
|
|
FontSize="15"
|
|
Foreground="White"
|
|
IsChecked="{Binding OperacaoAutomaticaSelecionada, Mode=OneWay}"
|
|
Command="{Binding SelecionarModoAutomaticoCommand}"/>
|
|
|
|
<RadioButton Content="Manual"
|
|
GroupName="ModoOperacao"
|
|
FontSize="15"
|
|
Foreground="White"
|
|
IsChecked="{Binding OperacaoManualSelecionada, Mode=OneWay}"
|
|
Command="{Binding SelecionarModoManualCommand}"/>
|
|
</StackPanel>
|
|
|
|
<TextBlock Text="{Binding DescricaoModoOperacao}"
|
|
Margin="0,12,0,0"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Center"
|
|
Foreground="#D0D0D0"
|
|
FontSize="13"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Rodapé / resumo -->
|
|
<Border Grid.Row="2"
|
|
Margin="20,0,20,12"
|
|
Padding="12"
|
|
Background="#252525"
|
|
CornerRadius="8"
|
|
BorderBrush="#3A3A3A"
|
|
BorderThickness="1">
|
|
<TextBlock Text="{Binding MensagemGeral}"
|
|
FontSize="14"
|
|
Foreground="White"
|
|
TextAlignment="Center"
|
|
TextWrapping="Wrap"/>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl> |