mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
20 lines
482 B
C#
20 lines
482 B
C#
using System;
|
|
using ReactiveUI.Fody.Helpers;
|
|
using Wabbajack.App.Interfaces;
|
|
using Wabbajack.App.ViewModels;
|
|
|
|
namespace Wabbajack.App.Views;
|
|
|
|
public abstract class ScreenBase<T> : ViewBase<T>, IScreenView
|
|
where T : ViewModelBase
|
|
{
|
|
protected ScreenBase(string humanName, bool createViewModel = true) : base(createViewModel)
|
|
{
|
|
HumanName = humanName;
|
|
}
|
|
|
|
public Type ViewModelType => typeof(T);
|
|
|
|
[Reactive]
|
|
public string HumanName { get; set; }
|
|
} |