1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-03-25 18:58:48 +00:00
SpoinkyNL 97972b0690 UI - Pat on the back
[ci skip]
2021-01-28 20:06:11 +01:00

35 lines
906 B
C#

using System.Reflection;
using Artemis.Core;
using Stylet;
namespace Artemis.UI.Screens.Settings.Tabs.About
{
public class AboutTabViewModel : Screen
{
private string _version;
public AboutTabViewModel()
{
DisplayName = "ABOUT";
}
public string Version
{
get => _version;
set => SetAndNotify(ref _version, value);
}
#region Overrides of Screen
/// <inheritdoc />
protected override void OnActivate()
{
AssemblyInformationalVersionAttribute versionAttribute = typeof(RootViewModel).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
Version = $"Version {versionAttribute?.InformationalVersion} build {Constants.BuildInfo.BuildNumberDisplay}";
base.OnActivate();
}
#endregion
}
}