/// <summary>
 /// Initializes a new instance of the <see cref="ServerTreeNode"/> class.
 /// </summary>
 /// <param name="servername">The servername.</param>
 /// <param name="children">The children.</param>
 public ServerTreeNode(string servername, ServerTreeNode[] children)
 {
     this.Name = servername;
     this.Text = servername;
     this.Nodes.AddRange(children);
     _sType = SecurityType.Integrated;
     _connected = false;
     _savePWD = false;
 }
 private void m_serverExplorer_SQLServerSelected(object sender, ServerTreeEventArgs e)
 {
     setSecurityToolStripMenuItem.Enabled = true;
     btnSetSecurity.Enabled = true;
     m_currentServerTreeNode = e.ServerTreeNode;
     if (m_currentServerTreeNode.Connected)
     {
         getDTSPackageToolStripMenuItem.Enabled = true;
         btnGetDTSPackages.Enabled = true;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerTreeNode"/> class.
 /// </summary>
 /// <param name="servername">The servername.</param>
 /// <param name="UID">The UID.</param>
 /// <param name="PWD">The PWD.</param>
 /// <param name="children">The children.</param>
 public ServerTreeNode(string servername, string UID, string PWD, bool savePWD, ServerTreeNode[] children)
 {
     this.Name = servername;
     this.Text = servername;
     this.Nodes.AddRange(children);
     _sType = SecurityType.Mixed;
     _uID = UID;
     _pwd = PWD;
     _connected = false;
     _savePWD = savePWD;
 }