Exemple #1
0
        /// <summary>
        ///  Callback used by the decorator in <see cref="CreateEditorMode"/>
        /// </summary>
        private IPortCandidateProvider GetPortCandidateProvider(INode forNode)
        {
            var model = new MyNodePortLocationModel {
                Inset = 10
            };

            return(PortCandidateProviders.FromCandidates(
                       new DefaultPortCandidate(forNode, model.CreateParameter(PortLocation.Center)),
                       new DefaultPortCandidate(forNode, model.CreateParameter(PortLocation.North)),
                       new DefaultPortCandidate(forNode, model.CreateParameter(PortLocation.East)),
                       new DefaultPortCandidate(forNode, model.CreateParameter(PortLocation.South)),
                       new DefaultPortCandidate(forNode, model.CreateParameter(PortLocation.West))));
        }
 public MyNodePortLocationModelParameter(MyNodePortLocationModel owner, PortLocation location)
 {
     this.owner    = owner;
     this.location = location;
 }