예제 #1
0
        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();
        }
예제 #2
0
#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();
        }
예제 #3
0
        public void ReloadFileNode(FileNode fileNode)
        {
            lock (_lockObject)
            {
                LoadFileNode(fileNode);
            }

            _filterService.ApplyFilesFilter();
        }
예제 #4
0
 public void OnEndDateChanged()
 {
     _filterService.ApplyFilesFilter();
 }