-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#137 WPF realization - move to page in settings. Add or delete not im…
…plemented now.
- Loading branch information
Showing
14 changed files
with
165 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,59 @@ | ||
<Window x:Class="MangaReader.UI.Setting.ProxySetting" | ||
<UserControl x:Class="MangaReader.UI.Setting.ProxySetting" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:resx="clr-namespace:MangaReader.Properties" | ||
xmlns:addNewManga="clr-namespace:MangaReader.UI.AddNewManga" | ||
mc:Ignorable="d" | ||
ShowInTaskbar="True" | ||
WindowStyle="ToolWindow" | ||
Height="230" | ||
Width="500" | ||
d:DesignHeight="230" d:DesignWidth="500"> | ||
|
||
<StackPanel> | ||
<Grid> | ||
<DockPanel LastChildFill="True"> | ||
<DockPanel DockPanel.Dock="Left" LastChildFill="False"> | ||
<ListBox DockPanel.Dock="Top" | ||
DisplayMemberPath="Name" | ||
ItemsSource="{Binding ProxySettingModels}" SelectedItem="{Binding SelectedProxySettingModel}"> | ||
</ListBox> | ||
<StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom"> | ||
<Button Content="+"/> | ||
<Button Content="-"/> | ||
</StackPanel> | ||
</DockPanel> | ||
<Grid DockPanel.Dock="Right" DataContext="{Binding SelectedProxySettingModel}"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
<RowDefinition Height="2*"></RowDefinition> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto"></ColumnDefinition> | ||
<ColumnDefinition Width="30*"></ColumnDefinition> | ||
<ColumnDefinition Width="30*"></ColumnDefinition> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" | ||
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" | ||
Content="Название: " /> | ||
<TextBox Grid.Row="1" Grid.Column="2" Text="{Binding Name}" IsEnabled="{Binding IsManual}"/> | ||
<TextBox Grid.Row="0" Grid.Column="2" Text="{Binding Name}" IsEnabled="{Binding IsManual}"/> | ||
|
||
|
||
<Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" | ||
<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" | ||
Content="Тип: " /> | ||
<TextBox Grid.Row="2" Grid.Column="2" Text="{Binding SettingType}" IsEnabled="False"/> | ||
<TextBox Grid.Row="1" Grid.Column="2" Text="{Binding SettingType}" IsEnabled="False"/> | ||
|
||
|
||
<Label Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" | ||
<Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" | ||
Content="Адрес прокси: " /> | ||
<TextBox Grid.Row="3" Grid.Column="2" Text="{Binding Address}" IsEnabled="{Binding IsManual}"/> | ||
<TextBox Grid.Row="2" Grid.Column="2" Text="{Binding Address}" IsEnabled="{Binding IsManual}"/> | ||
|
||
<Label Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" | ||
<Label Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" | ||
Content="Имя пользователя: " /> | ||
<TextBox Grid.Row="4" Grid.Column="2" Text="{Binding UserName}" IsEnabled="{Binding IsManual}"/> | ||
<TextBox Grid.Row="3" Grid.Column="2" Text="{Binding UserName}" IsEnabled="{Binding IsManual}"/> | ||
|
||
<Label Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" | ||
<Label Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" | ||
Content="Пароль: " /> | ||
<TextBox Grid.Row="5" Grid.Column="2" Text="{Binding Password}" IsEnabled="{Binding IsManual}"/> | ||
|
||
<Grid Grid.Row="6" VerticalAlignment="Bottom" Grid.ColumnSpan="3"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"/> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition Width="Auto"/> | ||
</Grid.ColumnDefinitions> | ||
<Button Grid.Column="1" IsDefault="True" Command="{Binding Save}"/> | ||
<Button Grid.Column="2" IsCancel="True" Content="Отмена"/> | ||
</Grid> | ||
<TextBox Grid.Row="4" Grid.Column="2" Text="{Binding Password}" IsEnabled="{Binding IsManual}"/> | ||
</Grid> | ||
</StackPanel> | ||
</Window> | ||
|
||
</DockPanel> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
MangaReader/ViewModel/Commands/Setting/SaveProxySettingCommand.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.