From 02ef139bb24172c3bfe9d9daa1e9a1a52994380e Mon Sep 17 00:00:00 2001 From: Ushakov Michael Date: Mon, 12 Feb 2024 01:02:23 +0500 Subject: [PATCH] partial Model usage --- .../ViewModels/SplashScreenViewModel.cs | 8 ++++---- .../Views/SplashScreenWindow.axaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Wissance.Zerial/Wissance.Zerial.Desktop/ViewModels/SplashScreenViewModel.cs b/app/Wissance.Zerial/Wissance.Zerial.Desktop/ViewModels/SplashScreenViewModel.cs index 4510ad1..65d7c4b 100644 --- a/app/Wissance.Zerial/Wissance.Zerial.Desktop/ViewModels/SplashScreenViewModel.cs +++ b/app/Wissance.Zerial/Wissance.Zerial.Desktop/ViewModels/SplashScreenViewModel.cs @@ -14,7 +14,7 @@ public class SplashScreenViewModel : ViewModelBase public SplashScreenViewModel(SplashScreenWindow window, AppVersionModel model) { _window = window; - _model = model; + Model = model; SecondsToStart = DefaultWait; // TODO(UMV): ADD 1sec Timer TimerCallback tm = new TimerCallback(CountToStart); @@ -56,15 +56,15 @@ public string Years } } + public AppVersionModel Model { get; set; } public int SecondsToStart { get; set; } - - + private const int YearOfWorksStarted = 2023; private const int DefaultWait = 6; // this time start parallel to Window drawing private readonly Timer _timer; private readonly SplashScreenWindow _window; - private readonly AppVersionModel _model; + } } \ No newline at end of file diff --git a/app/Wissance.Zerial/Wissance.Zerial.Desktop/Views/SplashScreenWindow.axaml b/app/Wissance.Zerial/Wissance.Zerial.Desktop/Views/SplashScreenWindow.axaml index a0db235..d4bdedd 100644 --- a/app/Wissance.Zerial/Wissance.Zerial.Desktop/Views/SplashScreenWindow.axaml +++ b/app/Wissance.Zerial/Wissance.Zerial.Desktop/Views/SplashScreenWindow.axaml @@ -44,7 +44,7 @@ - +