/// <summary>
        /// Initializes this view
        /// </summary>
        /// <param name="resSvc"></param>
        /// <param name="bFoldersOnly"></param>
        /// <param name="bOmitEmptyFolders"></param>
        public void Init(IResourceService resSvc, bool bFoldersOnly, bool bOmitEmptyFolders)
        {
            if (_model != null)
            {
                _model.ItemSelected -= OnItemSelectedInternal;
            }

            _model = new RepositoryFolderTreeModel(resSvc, trvRepository, bFoldersOnly, bOmitEmptyFolders);
            _model.ItemSelected += OnItemSelectedInternal;
        }
示例#2
0
        /// <summary>
        /// Initializes this view
        /// </summary>
        /// <param name="resSvc"></param>
        /// <param name="bFoldersOnly"></param>
        /// <param name="bOmitEmptyFolders"></param>
        public void Init(IResourceService resSvc, bool bFoldersOnly, bool bOmitEmptyFolders)
        {
            if (_model != null)
            {
                _model.ItemSelected -= OnItemSelectedInternal;
            }

            _model = new RepositoryFolderTreeModel(resSvc, trvRepository, bFoldersOnly, bOmitEmptyFolders);
            _model.ItemSelected += OnItemSelectedInternal;
        }