/// <summary> /// Initializes this object. /// </summary> /// <param name="parent">Parent page object.</param> /// <param name="root">The root node.</param> /// <returns>The initialized object.</returns> internal virtual IUIObject Init(IUIObject parent, IUIObjectNode root) { Parent = parent; node = root; return(this); }
/// <summary> /// Initialize this object. /// The parent node is used to search nodes without, hence disabling any caching. /// </summary> /// <param name="parent">The parent node.</param> /// <param name="hash">The node hash.</param> /// <param name="enableCaching">Whether to enable caching.</param> /// <returns>This object.</returns> public IUIObjectNode Init(IUIObjectNode parent, int hash, bool enableCaching) { mHash = hash; mParent = parent; this.enableCaching = enableCaching; return(this); }
/// <summary> /// Initialize this object. /// </summary> /// <param name="parent">The parent object.</param> /// <param name="enableCaching">Whether to enable caching.</param> /// <returns>The initialized page object.</returns> internal virtual IUIObject Init(IUIObject parent, bool enableCaching) { IUIObjectNode node = CreateNode; ((IUIObjectNodeInternal)node).Init(parent.Node, GetHashCode(), enableCaching); Init(parent, node); return(this); }
/// <summary> /// Initialize this object. /// The parent node is used to search nodes without, hence disabling any caching. /// </summary> /// <param name="parent">The parent node.</param> /// <param name="hash">The node hash.</param> /// <param name="enableImages">Whether to take images.</param> /// <param name="pageObjectSearchDepth">The page object search depth.</param> /// <param name="controlObjectSearchDepth">The control object search depth.</param> /// <returns>This object.</returns> public IUIObjectNode Init(IUIObjectNode parent, int hash, bool enableImages, Func <int> pageObjectSearchDepth, Func <int> controlObjectSearchDepth) { mHash = hash; mEnableImages = enableImages; mParent = parent; mPageObjectSearchDepth = pageObjectSearchDepth; mControlObjectSearchDepth = controlObjectSearchDepth; return(this); }