예제 #1
0
            /// <exclude />
            public Enumerator(DomContainer domContainer, ArrayList children, CreateElementInstance createElementInstance)
            {
                this.children              = children;
                this.domContainer          = domContainer;
                this.createElementInstance = createElementInstance;

                Reset();
            }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ButtonCollection"/> class.
        /// Mainly used by WatiN internally.
        /// </summary>
        /// <param name="domContainer">The DOM container.</param>
        /// <param name="elements">The elements.</param>
        /// <param name="createElementInstance">The create element instance.</param>
        protected BaseElementCollection(DomContainer domContainer, ArrayList elements, CreateElementInstance createElementInstance)
        {
            if (domContainer == null)
            {
                throw new ArgumentNullException("domContainer");
            }

            this.elements              = elements;
            this.domContainer          = domContainer;
            this.createElementInstance = createElementInstance;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonCollection"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="elements">The elements.</param>
 /// <param name="createElementInstance">The create element instance.</param>
 public BaseElementCollection(DomContainer domContainer, ArrayList elements, CreateElementInstance createElementInstance)
 {
     this.elements              = elements;
     this.domContainer          = domContainer;
     this.createElementInstance = createElementInstance;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonCollection"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="finder">The finder.</param>
 /// <param name="createElementInstance">The create element instance.</param>
 public BaseElementCollection(DomContainer domContainer, ElementFinder finder, CreateElementInstance createElementInstance)
     :
     this(domContainer, (ArrayList)null, createElementInstance)
 {
     this.finder = finder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonCollection"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="elements">The elements.</param>
 /// <param name="createElementInstance">The create element instance.</param>
 public BaseElementCollection(DomContainer domContainer, ArrayList elements, CreateElementInstance createElementInstance)
 {
     this.elements = elements;
     this.domContainer = domContainer;
     this.createElementInstance = createElementInstance;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonCollection"/> class.
 /// Mainly used by WatiN internally.
 /// </summary>
 /// <param name="domContainer">The DOM container.</param>
 /// <param name="finder">The finder.</param>
 /// <param name="createElementInstance">The create element instance.</param>
 public BaseElementCollection(DomContainer domContainer, ElementFinder finder, CreateElementInstance createElementInstance)
     : this(domContainer, (ArrayList)null, createElementInstance)
 {
     this.finder = finder;
 }
            /// <exclude />
            public Enumerator(DomContainer domContainer, ArrayList children, CreateElementInstance createElementInstance)
            {
                this.children = children;
                this.domContainer = domContainer;
                this.createElementInstance = createElementInstance;

                Reset();
            }
예제 #8
0
 public void Dispose()
 {
     children              = null;
     domContainer          = null;
     createElementInstance = null;
 }