mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
29 lines
891 B
C#
29 lines
891 B
C#
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
|
using Wabbajack.App.Blazor.State;
|
|
using Wabbajack.Common;
|
|
using Wabbajack.Paths;
|
|
|
|
namespace Wabbajack.App.Blazor.Pages;
|
|
|
|
public partial class Install
|
|
{
|
|
[Inject] private NavigationManager NavigationManager { get; set; }
|
|
[Inject] private GlobalState GlobalState { get; set; }
|
|
|
|
private void SelectFile()
|
|
{
|
|
using (var dialog = new CommonOpenFileDialog())
|
|
{
|
|
dialog.Multiselect = false;
|
|
dialog.Filters.Add(new CommonFileDialogFilter("Wabbajack File", "*" + Ext.Wabbajack));
|
|
if (dialog.ShowDialog() != CommonFileDialogResult.Ok) return;
|
|
GlobalState.ModListPath = dialog.FileName.ToAbsolutePath();
|
|
}
|
|
|
|
NavigationManager.NavigateTo("/Configure");
|
|
}
|
|
|
|
private void VerifyFile(AbsolutePath path) { }
|
|
}
|