-
-
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.
- Loading branch information
Drommedhar
committed
Sep 24, 2024
1 parent
e12a310
commit 5d0092d
Showing
12 changed files
with
126 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using DlssUpdater.Defines; | ||
using DlssUpdater.Helpers; | ||
using DlssUpdater.Singletons; | ||
using DlssUpdater.Singletons.AntiCheatChecker; | ||
using Microsoft.VisualBasic; | ||
using System.ComponentModel; | ||
using System.Reflection; | ||
using System.Runtime; | ||
using Wpf.Ui.Appearance; | ||
using Wpf.Ui.Controls; | ||
|
||
namespace DlssUpdater.ViewModels.Pages; | ||
|
||
public partial class ChangelogViewModel : ObservableObject, INavigationAware | ||
{ | ||
private bool _isInitialized = false; | ||
private Settings _settings; | ||
|
||
public ChangelogViewModel(Settings settings) | ||
{ | ||
_settings = settings; | ||
} | ||
|
||
public void OnNavigatedTo() | ||
{ | ||
if (!_isInitialized) | ||
InitializeViewModel(); | ||
} | ||
|
||
public void OnNavigatedFrom() | ||
{ | ||
} | ||
|
||
private void InitializeViewModel() | ||
{ | ||
_isInitialized = true; | ||
} | ||
} |
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,23 @@ | ||
<Page | ||
x:Class="DlssUpdater.Views.Pages.ChangelogPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
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:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml" | ||
xmlns:helpers="clr-namespace:DlssUpdater.Helpers" | ||
xmlns:pages="clr-namespace:DlssUpdater.Views.Pages" | ||
Title="ChangelogPage" | ||
d:DataContext="{d:DesignInstance pages:ChangelogPage, | ||
IsDesignTimeCreatable=False}" | ||
d:DesignHeight="450" | ||
d:DesignWidth="800" | ||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" | ||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" | ||
mc:Ignorable="d"> | ||
<StackPanel> | ||
<mdxam:MarkdownScrollViewer x:Name="viewLog" xml:space="preserve" Grid.Row="1" MarkdownStyleName="Sasabune" /> | ||
</StackPanel> | ||
</Page> |
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 DlssUpdater.ViewModels.Pages; | ||
using Wpf.Ui.Controls; | ||
|
||
namespace DlssUpdater.Views.Pages; | ||
|
||
public partial class ChangelogPage : INavigableView<ChangelogViewModel> | ||
{ | ||
public ChangelogPage(ChangelogViewModel viewModel) | ||
{ | ||
ViewModel = viewModel; | ||
DataContext = this; | ||
|
||
InitializeComponent(); | ||
|
||
viewLog.Markdown = System.IO.File.ReadAllText("changelog.md"); | ||
} | ||
|
||
public ChangelogViewModel ViewModel { get; } | ||
} |
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,5 @@ | ||
# v1.0.0.1 | ||
* Add changelog window, which will automatically be shown after update | ||
|
||
# v1.0.0.0 | ||
* Initial release |
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,3 +1,3 @@ | ||
{ | ||
"version": "1.0.0.0" | ||
"version": "1.0.0.1" | ||
} |
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