Skip to content

Instantly share code, notes, and snippets.

@RobertBouillon
Created December 3, 2021 19:26
Show Gist options
  • Save RobertBouillon/3d6a8a921d2d2afd274ba8f494de0ecd to your computer and use it in GitHub Desktop.
Save RobertBouillon/3d6a8a921d2d2afd274ba8f494de0ecd to your computer and use it in GitHub Desktop.
Chromely Shell
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