Esempio n. 1
0
        private void OnRelatedNodeSelectorRequested(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
        {
            DiagramViewportViewModel.PinFocus();
            var viewModelItems = modelNodes.OrderBy(i => i, _modelNodeComparer).Select(_relatedNodeItemViewModelFactory.Create);

            RelatedNodeListBoxViewModel.Show(ownerButton, viewModelItems);
        }
        private void OnShowRelatedNodesRequested(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
        {
            switch (modelNodes.Count)
            {
            case 0:
                return;

            case 1:
                ShowModelItemsRequested?.Invoke(modelNodes, followNewDiagramNodes: true);
                break;

            default:
                HideRelatedNodeListBox();
                ShowModelItemsRequested?.Invoke(modelNodes, followNewDiagramNodes: true);
                break;
            }
        }
Esempio n. 3
0
 public void ShowRelatedModelNodeSelector(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
 => RelatedNodeSelectorRequested?.Invoke(ownerButton, modelNodes);
 public override void Hide()
 {
     OwnerButton = null;
     base.Hide();
 }
 public void Show(RelatedNodeMiniButtonViewModel ownerButton, IEnumerable <IModelNode> items)
 {
     OwnerButton = ownerButton;
     base.Show(items);
 }
 private void OnRelatedNodeSelectorRequested(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
 {
     DiagramViewportViewModel.PinDecoration();
     RelatedNodeListBoxViewModel.Show(ownerButton, modelNodes);
 }
 private void OnEntitySelectorRequested(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
 => RelatedNodeSelectorRequested?.Invoke(ownerButton, modelNodes);
 private void OnShowRelatedNodesRequested(RelatedNodeMiniButtonViewModel ownerButton, IReadOnlyList <IModelNode> modelNodes)
 => ShowRelatedNodesRequested?.Invoke(ownerButton, modelNodes);