Exemple #1
0
 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);
 }
Exemple #2
0
 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);
         }
     }
 }
Exemple #3
0
 public void Bind(BindableTarg <T> target)
 {
     Targs.Add(target);
 }