(ZIP): query password for encrypted archives.

This commit is contained in:
morkt
2018-01-30 06:34:24 +04:00
parent 98e42a1f66
commit 07c69a4866
13 changed files with 137 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<StackPanel x:Class="GameRes.Formats.GUI.WidgetZIP"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:GameRes.Formats.Strings"
xmlns:p="clr-namespace:GameRes.Formats.Properties"
xmlns:zip="clr-namespace:GameRes.Formats.PkWare"
Orientation="Vertical">
<Label Content="{x:Static s:arcStrings.ZIPChoose}" HorizontalAlignment="Left"/>
<ComboBox Name="Title" Width="200" HorizontalAlignment="Left"
ItemsSource="{Binding RelativeSource={RelativeSource Self}, Path=DataContext}"
SelectedValue="{Binding ElementName=Password, Path=Text, Mode=TwoWay}" SelectedValuePath="Value"
DisplayMemberPath="Key"/>
<TextBox x:Name="Password" Width="200" HorizontalAlignment="Left" Margin="0,5,0,0"
Text="{Binding Source={x:Static p:Settings.Default}, Path=ZIPPassword, Mode=OneWay}"/>
</StackPanel>