Esempio n. 1
0
        void AddTestNodeLink()
        {
            var nodeLink = new NodeLinkViewModel();

            nodeLink.OutputGuid = (_NodeViewModels[0] as NodeViewModel1).Outputs.ElementAt(0).Guid;
            nodeLink.InputGuid  = (_NodeViewModels[1] as NodeViewModel1).Inputs.ElementAt(0).Guid;
            _NodeLinkViewModels.Add(nodeLink);
        }
Esempio n. 2
0
        void Connect(ConnectCommandParameter param)
        {
            var nodeLink = new NodeLinkViewModel()
            {
                InputGuid      = param.InputConnectorGuid,
                InputNodeGuid  = param.InputNodeGuid,
                OutputGuid     = param.OutputConnectorGuid,
                OutputNodeGuid = param.OutputNodeGuid,
            };

            _NodeLinkViewModels.Add(nodeLink);
        }