12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <Window x:Class="EncyptTool.MainWindow"
- 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"
- xmlns:local="clr-namespace:EncyptTool"
- mc:Ignorable="d"
- Title="Encrypter" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border BorderThickness="1,1,1,1" BorderBrush="Gray" CornerRadius="6" Margin="25,25,25,25" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="4*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="Setting source path: " Grid.Row="0" Grid.Column="0" FontSize="16" Foreground="Black" Margin="25,25,25,25"/>
- <TextBox Grid.Row="0" Height="25" x:Name="SourcePath" Grid.Column="1" BorderBrush="Black" Margin="25,25,25,25"/>
- <Button x:Name="SelectSource" Grid.Row="0" Grid.Column="2" Content="..." Width="90" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" Click="SelectSource_Click"/>
- <TextBlock Text="Output path: " ToolTip="Destination path is the default output path" Grid.Row="1" Grid.Column="0" FontSize="16" Foreground="Black" Margin="25,25,25,25"/>
- <StackPanel Margin="25,25,25,25" Grid.Row="1" Grid.Column="1">
- <TextBox Height="25" x:Name="OutputPath" BorderBrush="Black" />
- <TextBlock Margin="0,5,0,0" Foreground="Gray" Text="Destination path is the default output path" />
- </StackPanel>
- <Button x:Name="SelectOutput" Grid.Row="1" Grid.Column="2" Content="..." Width="90" Height="20" Margin="0,0,0,20" HorizontalAlignment="Left" VerticalAlignment="Center" Click="SelectOutput_Click"/>
- <CheckBox Grid.Row="2" x:Name="SimpleServiceFlag" Grid.Column="0" Grid.ColumnSpan="3" Margin="25,25,25,25" Content="Encrypt config with simplfied services" />
- <Button Grid.Row="3" x:Name="EncryptButton" Grid.Column="0" Grid.ColumnSpan="3" Width="250" Content="Encrypt" FontSize="16" Foreground="Black" Height="30" VerticalAlignment="Center" Click="EncryptButton_Click"/>
- <Button Grid.Row="4" x:Name="DecryptButton" Grid.Column="0" Grid.ColumnSpan="3" Width="250" Content="Decrypt" FontSize="16" Foreground="Black" Height="30" VerticalAlignment="Center" Click="DecryptButton_Click"/>
- </Grid>
- </Border>
- </Grid>
- </Window>
|