Created
December 3, 2021 19:26
-
-
Save RobertBouillon/3d6a8a921d2d2afd274ba8f494de0ecd to your computer and use it in GitHub Desktop.
Chromely Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.JSInterop; | |
using Spin.Pillars.FileSystem; | |
using System; | |
using System.Threading.Tasks; | |
namespace USS.Tempus.Shell | |
{ | |
public record DialogResponse(bool Cancel, string Value); | |
public interface IShell | |
{ | |
Task<DialogResponse> SelectFileDialogAsync(string initPath = null); | |
Task<DialogResponse> SelectFolderDialogAsync(string initPath = null); | |
Task<DialogResponse> SaveFileDialogAsync(string initPath = null); | |
FileSystem FileSystem { get; } | |
void BrowsePath(string path); | |
void Initialize(IJSInProcessRuntime js); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment