Skip to content

Commit

Permalink
partial Model usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Feb 11, 2024
1 parent 542e4ea commit 02ef139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0 10 0 0">
<TextBlock Text="Version: "></TextBlock>
<TextBlock Text="1.0"></TextBlock>
<TextBlock Text="{Binding Model.Version}"></TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0 10 0 0">
<TextBlock Text="Support Us: "></TextBlock>
Expand Down

0 comments on commit 02ef139

Please sign in to comment.