I'm afraid that my callstack is empty after setting a breakpoint at the beginning of OnFileDeleted (case when I try to delete a folder containing other sub-folders and deletion isn't possible to conduct).
There is no problem when I delete a folder containing .txt. (with no other folders). To...
I came up with something like that:
private void OnFileDeleted(FileSystemEventArgs e)
{
if (Items.Any(x => x.Caption == e.Name))
{
var toDelete = Items.Single(x => x.Caption == e.Name);
Items.Remove(toDelete);
}
}
Deletion works, but not quite. When I delete...
I'm making a file explorer app using MVVM pattern in C# WPF. Right now I want to implement watcher events that are responsible for adding, removing and renaming items from treeview. I already have adding, and partially renaming (I think that in this case I have to combine deleting and adding)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.