{
var selections = account.SelectiveFolders;
- if (selections.Count == 0)
- return;
+
+
//Initially, all nodes are checked
//We need to *uncheck* the nodes that are not selected
from DirectoryRecord record in rootRecord
select record).ToList();
+ if (selections.Count == 0)
+ {
+ allNodes.Apply(record => record.IsChecked = false);
+ return;
+ }
+
var selects = (from DirectoryRecord rootRecord in RootNodes
from DirectoryRecord record in rootRecord
where record.Uri !=null && !selections.Contains(record.Uri.ToString())