UI improvements

This commit is contained in:
2022-01-24 00:08:22 +01:00
parent 031d07613b
commit aacbaa3a02
33 changed files with 729 additions and 152 deletions

View File

@@ -64,6 +64,8 @@ namespace FileTime.Providers.Smb
public IContainer? GetParent() => _parent;
public Task<IContainer> Clone() => Task.FromResult((IContainer)this);
public async Task<bool> IsExists(string name) => (await GetItems())?.Any(i => i.Name == name) ?? false;
public async Task Refresh() => await Refreshed.InvokeAsync(this, AsyncEventArgs.Empty);

View File

@@ -45,6 +45,8 @@ namespace FileTime.Providers.Smb
throw new NotImplementedException();
}
public Task<IContainer> Clone() => Task.FromResult((IContainer)this);
public async Task<IItem?> GetByPath(string path)
{
var paths = path.Split(Constants.SeparatorChar);

View File

@@ -92,6 +92,8 @@ namespace FileTime.Providers.Smb
await Refreshed.InvokeAsync(this, AsyncEventArgs.Empty);
}
public Task<IContainer> Clone() => Task.FromResult((IContainer)this);
private async Task<ISMBClient> GetSmbClient()
{
if (_client == null)

View File

@@ -88,6 +88,8 @@ namespace FileTime.Providers.Smb
public IContainer? GetParent() => _parent;
public Task<IContainer> Clone() => Task.FromResult((IContainer)this);
public Task<bool> IsExists(string name)
{
throw new NotImplementedException();