mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using System.Reactive;
|
|
using Artemis.UI.Shared;
|
|
using ReactiveUI;
|
|
|
|
namespace Artemis.UI.Screens.Workshop.SubmissionWizard;
|
|
|
|
public abstract class SubmissionViewModel : ValidatableViewModelBase
|
|
{
|
|
private string _continueText = "Continue";
|
|
private bool _showFinish;
|
|
private bool _showGoBack = true;
|
|
private bool _showHeader = true;
|
|
|
|
public SubmissionWizardState State { get; set; } = null!;
|
|
|
|
public abstract ReactiveCommand<Unit, Unit> Continue { get; }
|
|
public abstract ReactiveCommand<Unit, Unit> GoBack { get; }
|
|
|
|
public bool ShowHeader
|
|
{
|
|
get => _showHeader;
|
|
set => RaiseAndSetIfChanged(ref _showHeader, value);
|
|
}
|
|
|
|
public bool ShowGoBack
|
|
{
|
|
get => _showGoBack;
|
|
set => RaiseAndSetIfChanged(ref _showGoBack, value);
|
|
}
|
|
|
|
public bool ShowFinish
|
|
{
|
|
get => _showFinish;
|
|
set => RaiseAndSetIfChanged(ref _showFinish, value);
|
|
}
|
|
|
|
public string ContinueText
|
|
{
|
|
get => _continueText;
|
|
set => RaiseAndSetIfChanged(ref _continueText, value);
|
|
}
|
|
} |