private async void OnRenamed(string newName, string oldName) { Argument.IsNotNullOrEmpty(() => oldName); Argument.IsNotNullOrEmpty(() => newName); if (newName.IsFile()) { await RenameFile(oldName, newName); } if (newName.IsDirectory()) { await RenameFolder(oldName, newName); } _filterService.ApplyFilesFilter(); }
#pragma warning disable AvoidAsyncVoid // Avoid async void private async void OnRenamed(string newName, string oldName) #pragma warning restore AvoidAsyncVoid // Avoid async void { Argument.IsNotNullOrEmpty(() => oldName); Argument.IsNotNullOrEmpty(() => newName); if (newName.IsFile()) { await RenameFileAsync(oldName, newName); } if (newName.IsDirectory()) { await RenameFolderAsync(oldName, newName); } _filterService.ApplyFilesFilter(); }
public void ReloadFileNode(FileNode fileNode) { lock (_lockObject) { LoadFileNode(fileNode); } _filterService.ApplyFilesFilter(); }
public void OnEndDateChanged() { _filterService.ApplyFilesFilter(); }