コード例 #1
0
        public static void EnableSearch()
        {
            // Set Searching to true
            MacroFSNode.Searching = true;

            // And then notify all node that their IsMatch property might have changed
            MacroFSNode.NotifyAllNode(MacroFSNode.RootNode, "IsMatch");
        }
コード例 #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);
                }
            }
        }