/// <summary>
		/// Add an element of the specified <see cref="NodeImage">NodeImage</see> to the end of the collection.
		/// </summary>
		/// <param name="value">An object of type <see cref="NodeImage">NodeImage</see> to add to the collection.</param>
		public int Add(NodeImage value)
		{
			int index = List.Add(value);
			if (m_isTrackingViewState)
			{
				value.TrackViewState();
				value.SetDirty();
			}
			return index;
		}
Пример #2
0
        /// <summary>
        /// Add an element of the specified <see cref="NodeImage">NodeImage</see> to the end of the collection.
        /// </summary>
        /// <param name="value">An object of type <see cref="NodeImage">NodeImage</see> to add to the collection.</param>
        public int Add(NodeImage value)
        {
            int index = List.Add(value);

            if (m_isTrackingViewState)
            {
                value.TrackViewState();
                value.SetDirty();
            }
            return(index);
        } //Add
Пример #3
0
        /// <summary>
        /// (IStateManager.LoadViewState)
        /// Loads the NodeImageCollection's previously saved view state.
        /// </summary>
        public void LoadViewState(object state)
        {
            if (!(state == null))
            {
                object[] nodeState = (object[])state;
                int      index;
                for (index = 0; index <= nodeState.Length - 1; index++)
                {
                    NodeImage _nodeImage = new NodeImage();
                    Add(_nodeImage);

                    _nodeImage.TrackViewState();
                    _nodeImage.LoadViewState(nodeState[index]);
                }
            }
        }
        /// <summary>
        /// (IStateManager.LoadViewState)
        /// Loads the NodeImageCollection's previously saved view state.
        /// </summary>
        public void LoadViewState( object state )
        {
            if( !( state == null ) )
            {
                object[] nodeState = (object[])state;
                int index;
                for( index = 0; index <= nodeState.Length - 1; index++ )
                {
                    NodeImage _nodeImage = new NodeImage();
                    Add( _nodeImage );

                    _nodeImage.TrackViewState();
                    _nodeImage.LoadViewState( nodeState[index] );
                }
            }
        }