public A() { int l = 0; int m = 0; Bindable <int> b = new Bindable <int>(); BindableTarg <int> targ = new BindableTarg <int>((x) => { l = x; }, b); BindableTarg <int> targ2 = new BindableTarg <int>((x) => { m = x; }, b); }
public void Update(BindableTarg <T> calling, T val) { for (int j = 0; j < Targs.Count; j++) { if (!object.ReferenceEquals(Targs[j], calling)) { Targs[j].Update(val); } } }
public void Bind(BindableTarg <T> target) { Targs.Add(target); }