コード例 #1
0
        public override void ReCheckPageDependant()
        {
            FormDrawableObject drawableParent = Parent as FormDrawableObject;

            if (drawableParent == null)
            {
                return;
            }

            drawableParent.ReCheckPageDependant();
        }
コード例 #2
0
        public virtual void QueueAllocate()
        {
            FormDrawableObject drawableParent = Parent as FormDrawableObject;

            if (drawableParent != null)
            {
                drawableParent.QueueAllocate();
            }
            else
            {
                QueueAllocateDown();
            }
        }
コード例 #3
0
        public override void ReCheckPageDependant()
        {
            bool oldPageDependant = IsPageDependant;

            isPageDependant = Children.Cast <FormDrawableObject> ().Any(drawable => drawable.IsPageDependant);
            if (isPageDependant == oldPageDependant)
            {
                return;
            }

            FormDrawableObject drawableParent = Parent as FormDrawableObject;

            if (drawableParent != null)
            {
                drawableParent.ReCheckPageDependant();
            }
        }
コード例 #4
0
        public override void ReCheckPageDependant()
        {
            if (isPageDependant == SourceIsPageVariable)
            {
                return;
            }

            FormDrawableObject drawableParent = Parent as FormDrawableObject;

            if (drawableParent == null)
            {
                return;
            }

            isPageDependant = SourceIsPageVariable;
            drawableParent.ReCheckPageDependant();
        }
コード例 #5
0
        protected virtual void OnChildObjectsListChanged(object sender, ListChangedEventArgs e)
        {
            IList children = (IList)sender;

            if (e.ListChangedType == ListChangedType.ItemAdded)
            {
                FormObject formObject = (FormObject)children [e.NewIndex];
                formObject.Parent     = this;
                formObject.Selectable = selectable;
            }
            for (int i = 0; i < children.Count; i++)
            {
                FormDrawableObject child = children [i] as FormDrawableObject;
                if (child != null)
                {
                    child.ParentPosition = i;
                }
            }
        }