-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting custom downloader args.
Minor tweaks in FetchWindow.
- Loading branch information
Showing
20 changed files
with
207 additions
and
16 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<adonisControls:AdonisWindow x:Class="Vividl.View.CustomArgsWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI" | ||
xmlns:adonisControls="clr-namespace:AdonisUI.Controls;assembly=AdonisUI" | ||
xmlns:adonisExtensions="clr-namespace:AdonisUI.Extensions;assembly=AdonisUI" | ||
xmlns:lex="http://wpflocalizeextension.codeplex.com" | ||
lex:LocalizeDictionary.DesignCulture="en" | ||
lex:ResxLocalizationProvider.DefaultAssembly="Vividl" | ||
lex:ResxLocalizationProvider.DefaultDictionary="Resources" | ||
Title="{lex:Loc CustomArgsWindow_Title}" | ||
Width="350" Height="350" | ||
WindowStartupLocation="CenterOwner" ShowInTaskbar="False"> | ||
<Window.Style> | ||
<Style TargetType="Window" BasedOn="{StaticResource {x:Type Window}}"/> | ||
</Window.Style> | ||
<DockPanel> | ||
<DockPanel Margin="4" DockPanel.Dock="Bottom" LastChildFill="False"> | ||
<Button Content="{lex:Loc Cancel}" TabIndex="2" | ||
DockPanel.Dock="Right" MinWidth="80" | ||
IsCancel="True"/> | ||
<Button Content="{lex:Loc Submit}" TabIndex="1" | ||
DockPanel.Dock="Right" MinWidth="80" | ||
Click="Submit_Click" IsDefault="True"/> | ||
</DockPanel> | ||
<StackPanel DockPanel.Dock="Top"> | ||
<TextBlock Text="{lex:Loc CustomArgsWindow_Description}" | ||
Margin="8"/> | ||
<TextBlock Text="{lex:Loc CustomArgsWindow_Warning}" | ||
TextWrapping="Wrap" | ||
Foreground="{DynamicResource {x:Static adonisUi:Brushes.AccentBrush}}" | ||
Margin="8,0,8,8"/> | ||
</StackPanel> | ||
<TextBox x:Name="txtArgs" AcceptsReturn="True" TabIndex="0" | ||
VerticalScrollBarVisibility="Auto" | ||
adonisExtensions:CursorSpotlightExtension.RelativeSpotlightSize="0"/> | ||
</DockPanel> | ||
</adonisControls:AdonisWindow> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Windows; | ||
using AdonisUI.Controls; | ||
|
||
namespace Vividl.View | ||
{ | ||
public partial class CustomArgsWindow : AdonisWindow | ||
{ | ||
public CustomArgsWindow(string args) | ||
{ | ||
InitializeComponent(); | ||
txtArgs.Text = args; | ||
} | ||
|
||
public object ReturnValue { get; set; } | ||
|
||
private void Submit_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.DialogResult = true; | ||
this.ReturnValue = txtArgs.Text; | ||
this.Close(); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.