示例#1
0
        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);
                }
            }
        }
示例#2
0
        // 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);
                }
            }
        }
示例#3
0
        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");
        }
示例#4
0
        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");
        }
示例#5
0
        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);
                }
            }
        }
示例#6
0
        // 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);
                }
            }
        }