wabbajack/Wabbajack.App/Views/ScreenBase.cs

20 lines
482 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System;
2021-11-04 13:01:48 +00:00
using ReactiveUI.Fody.Helpers;
2021-09-27 12:42:46 +00:00
using Wabbajack.App.Interfaces;
using Wabbajack.App.ViewModels;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.App.Views;
public abstract class ScreenBase<T> : ViewBase<T>, IScreenView
2021-09-27 12:42:46 +00:00
where T : ViewModelBase
2021-10-23 16:51:17 +00:00
{
2021-11-04 13:01:48 +00:00
protected ScreenBase(string humanName, bool createViewModel = true) : base(createViewModel)
2021-09-27 12:42:46 +00:00
{
2021-11-04 13:01:48 +00:00
HumanName = humanName;
2021-09-27 12:42:46 +00:00
}
2021-10-23 16:51:17 +00:00
public Type ViewModelType => typeof(T);
2021-11-04 13:01:48 +00:00
[Reactive]
public string HumanName { get; set; }
2021-09-27 12:42:46 +00:00
}