public static void UnmatchAllNodes(MacroFSNode root) { root.isMatch = false; root.NotifyPropertyChanged("IsMatch"); root.NotifyPropertyChanged("IsExpanded"); if (root.Children != null) { foreach (var child in root.Children) { MacroFSNode.UnmatchAllNodes(child); } } }
// Notifies all the nodes of the tree rooted at 'node' public static void NotifyAllNode(MacroFSNode root, string property) { root.NotifyPropertyChanged(property); if (root.Children != null) { foreach (var child in root.Children) { MacroFSNode.NotifyAllNode(child, property); } } }
private void AfterRefresh(MacroFSNode root, string selectedPath, HashSet <string> dirs) { // Set IsEnabled for each folders root.SetIsExpanded(root, dirs); // Selecte the previously selected macro MacroFSNode selected = MacroFSNode.FindNodeFromFullPath(selectedPath); selected.IsSelected = true; // Notify change root.NotifyPropertyChanged("Children"); }
private void AfterRefresh(MacroFSNode root, string selectedPath, HashSet<string> dirs) { // Set IsEnabled for each folders root.SetIsExpanded(root, dirs); // Selecte the previously selected macro MacroFSNode selected = MacroFSNode.FindNodeFromFullPath(selectedPath); selected.IsSelected = true; // Notify change root.NotifyPropertyChanged("Children"); }