This commit is contained in:
2022-06-09 17:49:34 +02:00
parent 9d48caaa58
commit 0b3fe30fec
24 changed files with 254 additions and 34 deletions

View File

@@ -4,4 +4,5 @@ public interface IUserCommunicationService
{
Task<bool> ReadInputs(params IInputElement[] fields);
void ShowToastMessage(string text);
Task<MessageBoxResult> ShowMessageBox(string text);
}

View File

@@ -0,0 +1,7 @@
namespace FileTime.Core.Interactions;
public enum MessageBoxResult
{
Ok,
Cancel
}

View File

@@ -6,4 +6,5 @@ public interface IContainer : IItem
{
IObservable<IObservable<IChangeSet<AbsolutePath, string>>?> Items { get; }
IObservable<bool> IsLoading { get; }
bool AllowRecursiveDeletion { get; }
}

View File

@@ -0,0 +1,25 @@
using FileTime.Core.Models;
using FileTime.Core.Timeline;
namespace FileTime.Core.Command.Delete;
public class DeleteCommand : IExecutableCommand
{
public bool HardDelete { get; init; }
public List<FullName> ItemsToDelete { get; } = new List<FullName>();
public Task<CanCommandRun> CanRun(PointInTime currentTime)
{
throw new NotImplementedException();
}
public Task<PointInTime> SimulateCommand(PointInTime currentTime)
{
throw new NotImplementedException();
}
public Task Execute()
{
throw new NotImplementedException();
}
}

View File

@@ -41,6 +41,7 @@ public abstract class ContentProviderBase : IContentProvider
public string? Attributes => null;
protected BehaviorSubject<bool> IsLoading { get; } = new(false);
public bool AllowRecursiveDeletion => false;
IObservable<bool> IContainer.IsLoading => IsLoading.AsObservable();

View File

@@ -22,6 +22,7 @@ public record Container(
bool CanRename,
string? Attributes,
IContentProvider Provider,
bool AllowRecursiveDeletion,
PointInTime PointInTime,
IObservable<IEnumerable<Exception>> Exceptions,
ReadOnlyExtensionCollection Extensions,