Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 3
0
        public void ReloadFileNode(FileNode fileNode)
        {
            lock (_lockObject)
            {
                LoadFileNode(fileNode);
            }

            _filterService.ApplyFilesFilter();
        }
Esempio n. 4
0
 public void OnEndDateChanged()
 {
     _filterService.ApplyFilesFilter();
 }