forked from BAndysc/WoWDatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Updater] Updater configuration panel
- Loading branch information
Showing
32 changed files
with
283 additions
and
53 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
34 changes: 34 additions & 0 deletions
34
WDE.CommonViews.Avalonia/Updater/Views/UpdaterConfigurationView.axaml
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,34 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
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:converters="clr-namespace:WDE.Common.Avalonia.Converters;assembly=WDE.Common.Avalonia" | ||
xmlns:mvvm="http://prismlibrary.com/" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
mvvm:ViewModelLocator.AutoWireViewModel="False" | ||
x:Class="WDE.CommonViews.Avalonia.Updater.Views.UpdaterConfigurationView"> | ||
<UserControl.Resources> | ||
<converters:DataTimeToStringConverter x:Key="DateConverter" Format="f" /> | ||
</UserControl.Resources> | ||
<Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,30,Auto" ColumnDefinitions="Auto,10,*"> | ||
<TextBlock Text="Current version" | ||
Grid.Row="0" /> | ||
<TextBlock Text="{Binding CurrentVersion}" | ||
Grid.Row="0" Grid.Column="2"/> | ||
<TextBlock Text="Last checked updates" | ||
Grid.Row="2"/> | ||
<TextBlock Text="{Binding LastCheckForUpdates, Converter={StaticResource DateConverter}}" | ||
Grid.Row="2" Grid.Column="2"/> | ||
<Button Command="{Binding CheckForUpdatesCommand}" | ||
Grid.Column="2" | ||
Grid.Row="4">Check for updates</Button> | ||
<Button Command="{Binding ShowChangelog}" | ||
Grid.Column="2" | ||
Grid.Row="6">Show changelog</Button> | ||
|
||
<TextBlock Text="Disable auto updates" | ||
Grid.Row="8"/> | ||
<CheckBox IsChecked="{Binding DisableAutoUpdates}" | ||
Grid.Row="8" Grid.Column="2"/> | ||
</Grid> | ||
</UserControl> |
19 changes: 19 additions & 0 deletions
19
WDE.CommonViews.Avalonia/Updater/Views/UpdaterConfigurationView.axaml.cs
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,19 @@ | ||
using Avalonia; | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
|
||
namespace WDE.CommonViews.Avalonia.Updater.Views | ||
{ | ||
public class UpdaterConfigurationView : UserControl | ||
{ | ||
public UpdaterConfigurationView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<UserControl x:Class="WDE.CommonViews.WPF.Updater.UpdaterConfigurationView" | ||
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" | ||
mvvm:ViewModelLocator.AutoWireViewModel="False" | ||
xmlns:converters="clr-namespace:WDE.Common.WPF.Converters;assembly=WDE.Common.WPF" | ||
xmlns:mvvm="http://prismlibrary.com/" | ||
xmlns:utils="clr-namespace:WDE.Common.WPF.Utils;assembly=WDE.Common.WPF" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<UserControl.Resources> | ||
<converters:DataTimeToStringConverter x:Key="DateConverter" Format="f" /> | ||
</UserControl.Resources> | ||
<Grid utils:GridUtils.Rows="Auto,10,Auto,10,Auto,10,Auto,30,Auto" utils:GridUtils.Columns="Auto,10,*" VerticalAlignment="Top"> | ||
<TextBlock Text="Current version" | ||
Grid.Row="0" /> | ||
<TextBlock Text="{Binding CurrentVersion}" | ||
Grid.Row="0" Grid.Column="2"/> | ||
<TextBlock Text="Last checked updates" | ||
Grid.Row="2"/> | ||
<TextBlock Text="{Binding LastCheckForUpdates, Converter={StaticResource DateConverter}}" | ||
Grid.Row="2" Grid.Column="2"/> | ||
<Button Command="{Binding CheckForUpdatesCommand}" | ||
Grid.Column="2" | ||
Grid.Row="4">Check for updates</Button> | ||
<Button Command="{Binding ShowChangelog}" | ||
Grid.Column="2" | ||
Grid.Row="6">Show changelog</Button> | ||
|
||
<TextBlock Text="Disable auto updates" | ||
Grid.Row="8"/> | ||
<CheckBox IsChecked="{Binding DisableAutoUpdates}" | ||
Grid.Row="8" Grid.Column="2"/> | ||
</Grid> | ||
</UserControl> |
12 changes: 12 additions & 0 deletions
12
WDE.CommonViews.WPF/Updater/UpdaterConfigurationView.xaml.cs
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,12 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace WDE.CommonViews.WPF.Updater | ||
{ | ||
public partial class UpdaterConfigurationView : UserControl | ||
{ | ||
public UpdaterConfigurationView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
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
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.