Beispiel #1
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] );
                }
            }
        }