public override void ReCheckPageDependant() { FormDrawableObject drawableParent = Parent as FormDrawableObject; if (drawableParent == null) { return; } drawableParent.ReCheckPageDependant(); }
public virtual void QueueAllocate() { FormDrawableObject drawableParent = Parent as FormDrawableObject; if (drawableParent != null) { drawableParent.QueueAllocate(); } else { QueueAllocateDown(); } }
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(); } }
public override void ReCheckPageDependant() { if (isPageDependant == SourceIsPageVariable) { return; } FormDrawableObject drawableParent = Parent as FormDrawableObject; if (drawableParent == null) { return; } isPageDependant = SourceIsPageVariable; drawableParent.ReCheckPageDependant(); }
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; } } }