Ejemplo n.º 1
0
        public void ManifestChanged()
        {
            string     ss = JsLib.OfString(_owner.GetField("cctor.LoBind"), null);
            Topic      st;
            LoVariable sv;

            if (ss != null && _owner.Exist(ss, out st))
            {
                sv = _src as LoVariable;
                if (sv == null || sv._owner != st)
                {
                    sv = _pl.GetVariable(st);
                }
            }
            else
            {
                sv = null;
            }
            Source = sv;
        }
Ejemplo n.º 2
0
        public LoVariable GetPin(Topic t)
        {
            LoVariable v;

            v = _pins.FirstOrDefault(z => z.Owner == t);
            if (v == null)
            {
                v = _pl.GetVariable(t);
                var ddr = _typeT != null?JsLib.OfInt(_typeT.GetState(), "Children." + t.name + ".ddr", 0) : 0;

                if (t.parent != _owner || ddr <= 0)
                {
                    v.AddLink(this);
                }
                else
                {
                    v.Source = this;
                }
                _pins.Add(v);
            }
            return(v);
        }