Пример #1
0
        public void AddPositionable(PositionableControl control)
        {
            if (controls.Contains(control))
            {
                return;
            }

            control.CurrentPositionable.PropertyChanged += CurrentPositionable_PropertyChanged;
            control.CurrentPositionable.SizeChanged     += CurrentPositionable_SizeChanged;
            controls.Add(control);
            UpdateSize();
        }
Пример #2
0
        public void RemovePositionable(PositionableControl control)
        {
            if (!controls.Contains(control))
            {
                return;
            }

            control.CurrentPositionable.PropertyChanged -= CurrentPositionable_PropertyChanged;
            control.CurrentPositionable.SizeChanged     -= CurrentPositionable_SizeChanged;
            controls.Remove(control);
            UpdateSize();
        }
Пример #3
0
 public bool Contains(PositionableControl control)
 {
     return(controls.Contains(control));
 }