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; }
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); }