Ejemplo n.º 1
0
        public static void Unregister(BindingInfoDrawer drawer)
        {
            bool found = false;
            int  i     = 0;

            while (found == false && i < aliveDrawers.Count)
            {
                if (aliveDrawers[i].TryGetTarget(out BindingInfoDrawer current) && current == drawer)
                {
                    found = true;
                    aliveDrawers.RemoveAt(i);
                }

                i++;
            }
        }
Ejemplo n.º 2
0
 public static void Register(BindingInfoDrawer drawer)
 {
     aliveDrawers.Add(new WeakReference <BindingInfoDrawer>(drawer));
 }