Exemplo n.º 1
0
        public bool HandleThreadExpand(IResource res, ThreadExpandReason reason)
        {
            IResourceThreadingHandler handler = GetResourceThreadingHandler(res);

            if (handler != null)
            {
                return(handler.HandleThreadExpand(res, reason));
            }
            return(true);
        }
Exemplo n.º 2
0
        private void HandleChildrenRequested(object sender, RequestChildrenEventArgs e)
        {
            if (_listView == null)
            {
                return;
            }

            IResource res = (IResource)e.Node.Data;

            e.Handled = _threadingHandler.HandleThreadExpand(res,
                                                             (e.Reason == RequestChildrenReason.Enumerate
                    ? ThreadExpandReason.Enumerate : ThreadExpandReason.Expand));

            BuildConversation(res, (e.Node == _lastExpandingNode && e.Node.Level == 0));
        }