Example #1
0
        /// <summary>
        /// Browses the address space for a single server.
        /// </summary>
        public void ShowSingleServer(TsCDaServer server, TsCDaBrowseFilters filters)
        {
            if (server == null)
            {
                throw new ArgumentNullException("server");
            }

            Clear();

            m_filters = (filters == null)?new TsCDaBrowseFilters():filters;

            m_singleServer                    = new TreeNode(server.ServerName);
            m_singleServer.ImageIndex         = Resources.IMAGE_LOCAL_SERVER;
            m_singleServer.SelectedImageIndex = Resources.IMAGE_LOCAL_SERVER;
            m_singleServer.Tag                = server.Duplicate();

            Connect(m_singleServer);
            BrowseTV.Nodes.Add(m_singleServer);
        }
        /// <summary>
        /// Browses the address space for a single server.
        /// </summary>
        public void ShowSingleServer(TsCDaServer server, TsCDaBrowseFilters filters)
        {
            if (server == null)
            {
                throw new ArgumentNullException("server");
            }

            Clear();

            mFilters_ = (filters == null)?new TsCDaBrowseFilters():filters;

            browseTv_.ContextMenuStrip = popupMenu_;

            mSingleServer_                    = new TreeNode(server.ServerName);
            mSingleServer_.ImageIndex         = Resources.IMAGE_LOCAL_SERVER;
            mSingleServer_.SelectedImageIndex = Resources.IMAGE_LOCAL_SERVER;
            mSingleServer_.Tag                = server.Duplicate();

            Connect(mSingleServer_);
            browseTv_.Nodes.Add(mSingleServer_);
        }