NativePath, Editor, ToastMessageSink

This commit is contained in:
2022-02-15 19:47:38 +01:00
parent b11d009195
commit 45defb4021
28 changed files with 265 additions and 54 deletions

View File

@@ -6,6 +6,7 @@ namespace FileTime.Core.Models
{
string Name { get; }
string? FullName { get; }
string? NativePath { get; }
bool IsHidden { get; }
bool IsDestroyed { get; }
SupportsDelete CanDelete { get; }

View File

@@ -22,6 +22,7 @@ namespace FileTime.Core.Models
public string Name => BaseContainer.Name;
public string? FullName => BaseContainer.FullName;
public string? NativePath => BaseContainer.NativePath;
public bool IsHidden => BaseContainer.IsHidden;
public bool IsLoaded => BaseContainer.IsLoaded;

View File

@@ -17,6 +17,7 @@ namespace FileTime.Core.Providers
#pragma warning restore CS8603 // Possible null reference return.
public string? FullName => null;
public string? NativePath => null;
public bool IsHidden => false;
public bool IsLoaded => true;

View File

@@ -31,6 +31,9 @@ namespace FileTime.Core.Timeline
public bool IsDestroyed { get; private set; }
//FIXME: currently this can be different of the real items NativePath, should be fixed
public string? NativePath => FullName;
public TimeContainer(string name, IContainer parent, IContentProvider contentProvider, IContentProvider virtualContentProvider, PointInTime pointInTime)
{
_parent = parent;

View File

@@ -22,6 +22,9 @@ namespace FileTime.Core.Timeline
public string? FullName { get; }
//FIXME: currently this can be different of the real items NativePath, should be fixed
public string? NativePath => FullName;
public bool IsHidden => false;
public SupportsDelete CanDelete => SupportsDelete.True;

View File

@@ -15,6 +15,7 @@ namespace FileTime.Core.Timeline
public string Name => "time";
public string? FullName => null;
public string? NativePath => null;
public bool IsHidden => false;