public override BaseNode SetReference(ProductEventEditor value)
    {
        BaseNode baseReturn = base.SetReference(value);

        parameterSource = reference.FileParameters;
        return(baseReturn);
    }
Exemplo n.º 2
0
    public override void DrawConnection()
    {
        if (parents.Count > 0)
        {
            foreach (var parent in parents)
            {
                if (parent == null)
                {
                    continue;
                }

                var finalcolor = Color.white;
                if (parent.GetNodeType == "Comparison")
                {
                    var compnode = (ComparativeNode)parent;

                    if (System.Array.IndexOf(compnode.children, (BaseNode)this) == 0)
                    {
                        finalcolor = Color.green;
                    }
                    else
                    {
                        finalcolor = Color.red;
                    }
                }

                ProductEventEditor.DrawNodeConnection(parent.windowRect, windowRect, true, finalcolor);
            }
        }
    }
Exemplo n.º 3
0
 //predeterminada
 public virtual void DrawConnection()
 {
     if (parents.Count > 0)
     {
         foreach (var parent in parents)
         {
             if (parent != null)
             {
                 ProductEventEditor.DrawNodeConnection(parent.windowRect, windowRect,
                                                       true, Color.white);
             }
         }
     }
 }
Exemplo n.º 4
0
 public virtual BaseNode SetReference(ProductEventEditor value)
 {
     reference = value;
     return(this);
 }