Пример #1
0
        private static bool TriggerNodeUIUpdate(FileTreeNodeViewModel currentNode, ILoadedGpxFile filteredFile)
        {
            var result = false;

            if (currentNode.AssociatedGpxFile == filteredFile)
            {
                currentNode.RaiseNodeTextChanged();
                result = true;
            }

            foreach (var actChildNode in currentNode.ChildNodes)
            {
                var childNodeUpdated = TriggerNodeUIUpdate(actChildNode, filteredFile);
                if (childNodeUpdated)
                {
                    currentNode.RaiseNodeTextChanged();
                }
            }
            return(result);
        }
Пример #2
0
        private static bool TriggerNodeUIUpdate(FileTreeNodeViewModel currentNode, HashSet <GpxFileRepositoryNode> models)
        {
            var result = false;

            if (models.Contains(currentNode.Model))
            {
                currentNode.RaiseNodeTextChanged();
                result = true;
            }

            foreach (var actChildNode in currentNode.ChildNodes)
            {
                var childNodeUpdated = TriggerNodeUIUpdate(actChildNode, models);
                if (childNodeUpdated)
                {
                    currentNode.RaiseNodeTextChanged();
                }
            }
            return(result);
        }
Пример #3
0
 public void NotifyFileTreeNodeDoubleClick(FileTreeNodeViewModel nodeViewModel)
 {
     base.Messenger.Publish(
         new MessageFocusFileRepositoryNodeRequest(nodeViewModel.Model));
 }