Exemplo n.º 1
0
 public void ShowSingleServer(Opc.Da.Server server, BrowseFilters filters)
 {
     if (server == null)
     {
         throw new System.ArgumentNullException("server");
     }
     this.Clear();
     this.m_discovery                       = null;
     this.m_filters                         = ((filters == null) ? new BrowseFilters() : filters);
     this.BrowseTV.ContextMenu              = this.PopupMenu;
     this.m_singleServer                    = new System.Windows.Forms.TreeNode(server.Name);
     this.m_singleServer.ImageIndex         = Resources.IMAGE_LOCAL_SERVER;
     this.m_singleServer.SelectedImageIndex = Resources.IMAGE_LOCAL_SERVER;
     this.m_singleServer.Tag                = server.Duplicate();
     this.Connect(this.m_singleServer);
     this.BrowseTV.Nodes.Add(this.m_singleServer);
 }