public void RefreshViewName() { CachedViewNames.Clear(); if( SelectedViewIds.Count > 0 ) { if( SelectMode != CswEnumNbtPropertySelectMode.Multiple && CswConvert.ToInt32( SelectedViewIds[0] ) > 0 ) { CswNbtView ThisView = _CswNbtResources.ViewSelect.restoreView( new CswNbtViewId( CswConvert.ToInt32( SelectedViewIds[0] ) ) ); if( null != ThisView ) { CachedViewNames.Add( ThisView.ViewName ); } } else { Collection<Int32> SelectedViewIdCollection = SelectedViewIds.ToIntCollection(); foreach( Int32 ViewId in SelectedViewIdCollection ) { CswNbtView ThisView = _CswNbtResources.ViewSelect.restoreView( new CswNbtViewId( ViewId ) ); if( null != ThisView ) { CachedViewNames.Add( ThisView.ViewName ); } } // foreach( Int32 ViewId in SelectedViewIdCollection ) } } // if( SelectedViewIds.Count > 0 ) this.PendingUpdate = false; } // RefreshViewName()