Пример #1
0
        private async void NotifyAndDelete(TreeNode node)
        {
            var directoryName = await _filesystem.GetDirectoryName(node.FullPath);

            if (directoryName != null && ShowYesNo("Delete folder", $"Are you sure you want to delete the folder:\n\n{directoryName}?"))
            {
                if (await _filesystem.DeleteDirectory(node.FullPath))
                {
                    node.Remove();
                }
            }
        }