mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-10 07:38:58 +08:00
check for updates - initial implementation.
This commit is contained in:
61
GUI/UpdateDialog.xaml
Normal file
61
GUI/UpdateDialog.xaml
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- Game Resource browser
|
||||
|
||||
Copyright (C) 2017 by morkt
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to
|
||||
deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
IN THE SOFTWARE.
|
||||
-->
|
||||
<Window x:Class="GARbro.GUI.UpdateDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:s="clr-namespace:GARbro.GUI.Strings"
|
||||
Title="Application update" ShowInTaskbar="False" WindowStartupLocation="CenterOwner"
|
||||
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
|
||||
SizeToContent="WidthAndHeight" ResizeMode="NoResize">
|
||||
<DockPanel>
|
||||
<DockPanel DockPanel.Dock="Bottom" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
|
||||
<Border BorderThickness="0,1,0,0" BorderBrush="Black">
|
||||
<Button HorizontalAlignment="Right" Content="{x:Static s:guiStrings.ButtonOK}"
|
||||
Margin="10" Width="75" Height="25" Click="Button_Click" IsCancel="True"/>
|
||||
</Border>
|
||||
</DockPanel>
|
||||
<Image DockPanel.Dock="Left" Source="Images/64x64/actions.png" Width="32" Height="32" Margin="10"
|
||||
SnapsToDevicePixels="True" VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality"/>
|
||||
<StackPanel DockPanel.Dock="Right" Orientation="Vertical">
|
||||
<StackPanel x:Name="ReleasePane" Orientation="Vertical">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="New version available:" Margin="0,10,0,0"/>
|
||||
<TextBlock x:Name="ReleaseVersion" Text="{Binding ReleaseVersion}" Margin="5,10,10,0"/>
|
||||
</StackPanel>
|
||||
<Expander x:Name="ReleaseNotes" Header="Release notes" ExpandDirection="Down" IsExpanded="False" Margin="0,0,10,0">
|
||||
<TextBlock Text="{Binding ReleaseNotes}"/>
|
||||
</Expander>
|
||||
<TextBlock Margin="0,5,10,10">
|
||||
<Hyperlink NavigateUri="{Binding ReleaseUrl}" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<TextBlock Text="Visit download page" ToolTip="{Binding ReleaseUrl}"/>
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel x:Name="FormatsPane" Orientation="Vertical">
|
||||
<Separator Visibility="{Binding ElementName=ReleasePane, Path=Visibility}"/>
|
||||
<TextBlock Text="Formats database update available." Margin="0,10,10,0"/>
|
||||
<Button x:Name="FormatsDownload" Content="_Download" MinWidth="75" Height="25" Margin="0,10,10,10"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user