2021-12-25 01:17:01 -05:00
|
|
|
|
using PatchGenerator.Models;
|
|
|
|
|
using Splat;
|
2021-12-22 23:15:14 -05:00
|
|
|
|
|
|
|
|
|
namespace PatchGenerator.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OptionsViewModel : ViewModelBase
|
|
|
|
|
{
|
2021-12-25 01:17:01 -05:00
|
|
|
|
public PatchGenInfo GenerationInfo { get; set; } = new PatchGenInfo();
|
|
|
|
|
|
|
|
|
|
private ViewNavigator navigator => Locator.Current.GetService<ViewNavigator>();
|
|
|
|
|
|
2021-12-25 20:24:00 -05:00
|
|
|
|
public OptionsViewModel()
|
2021-12-25 01:17:01 -05:00
|
|
|
|
{
|
|
|
|
|
GenerationInfo.SourceFolderPath = "Drop SOURCE folder here";
|
|
|
|
|
GenerationInfo.TargetFolderPath = "Drop TARGET folder here";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void GeneratePatches()
|
|
|
|
|
{
|
|
|
|
|
navigator.SelectedViewModel = new PatchGenerationViewModel(GenerationInfo);
|
|
|
|
|
}
|
2021-12-22 23:15:14 -05:00
|
|
|
|
}
|
|
|
|
|
}
|