23 lines
542 B
C#
Raw Normal View History

using System.Threading.Tasks;
using ReactiveUI;
namespace SPTInstaller.ViewModels;
public class OverviewViewModel : ViewModelBase
{
private string _providedPath;
2024-07-10 13:33:19 -04:00
public OverviewViewModel(IScreen Host, string providedPath) : base(Host)
{
_providedPath = providedPath;
if (!string.IsNullOrEmpty(_providedPath))
{
Task.Run(NextCommand);
}
}
public void NextCommand()
{
2024-07-10 13:33:19 -04:00
NavigateTo(new InstallPathSelectionViewModel(HostScreen, _providedPath));
}
}