86 lines
3.1 KiB
XML
86 lines
3.1 KiB
XML
<Window x:Class="OperationControl.Windows.NetworkConfigWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Configuração de Rede"
|
|
Height="300" Width="520"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="NoResize">
|
|
<Grid Margin="12">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="130"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Interface de rede -->
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
Text="Interface:"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,8,8"/>
|
|
<ComboBox Grid.Row="0" Grid.Column="1"
|
|
ItemsSource="{Binding Interfaces}"
|
|
SelectedItem="{Binding InterfaceSelecionada}"
|
|
Margin="0,0,0,8"
|
|
MinWidth="250" />
|
|
|
|
<!-- IP -->
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
Text="Endereço IP:"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,8,8"/>
|
|
<TextBox Grid.Row="1" Grid.Column="1"
|
|
Text="{Binding Ip}"
|
|
Margin="0,0,0,8" />
|
|
|
|
<!-- Máscara -->
|
|
<TextBlock Grid.Row="2" Grid.Column="0"
|
|
Text="Máscara:"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,8,8"/>
|
|
<TextBox Grid.Row="2" Grid.Column="1"
|
|
Text="{Binding Subnet}"
|
|
Margin="0,0,0,8" />
|
|
|
|
<!-- Gateway -->
|
|
<TextBlock Grid.Row="3" Grid.Column="0"
|
|
Text="Gateway:"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,8,8"/>
|
|
<TextBox Grid.Row="3" Grid.Column="1"
|
|
Text="{Binding Gateway}"
|
|
Margin="0,0,0,8" />
|
|
|
|
<!-- Mensagem / status -->
|
|
<TextBlock Grid.Row="4" Grid.ColumnSpan="2"
|
|
Text="{Binding MensagemStatus}"
|
|
TextWrapping="Wrap"
|
|
Foreground="Gray"
|
|
Margin="0,4,0,8" />
|
|
|
|
<!-- Botões -->
|
|
<StackPanel Grid.Row="5" Grid.ColumnSpan="2"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,12,0,0">
|
|
<Button Content="Atualizar"
|
|
Width="90"
|
|
Margin="0,0,8,0"
|
|
Command="{Binding AtualizarCommand}"/>
|
|
<Button Content="Salvar"
|
|
Width="90"
|
|
Margin="0,0,8,0"
|
|
Command="{Binding SalvarCommand}"/>
|
|
<Button Content="Fechar"
|
|
Width="90"
|
|
Command="{Binding FecharCommand}"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window> |