Beispiel #1
0
        /// <summary>
        /// <para>
        /// Add the default child nodes for the current node.
        /// </para>
        /// </summary>
        /// <remarks>
        /// <para>
        /// This will add the default database type nodes.
        /// </para>
        /// </remarks>
        protected override void AddDefaultChildNodes()
        {
            base.AddDefaultChildNodes();
            DatabaseTypeNode node = new DatabaseTypeNode(new DatabaseTypeData(SR.DefaultDatabaseTypeName, typeof(SqlDatabase).AssemblyQualifiedName));

            Nodes.AddWithDefaultChildren(node);
        }
Beispiel #2
0
 /// <devdoc>
 /// Handles the remove of a database node.
 /// </devdoc>
 private void OnDatabaseTypeNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.databaseTypeNode = null;
     DatabaseTypeName      = string.Empty;
 }
Beispiel #3
0
 /// <devdoc>
 /// Handles the remove of a database node.
 /// </devdoc>                
 private void OnDatabaseTypeNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.databaseTypeNode = null;
     DatabaseTypeName = string.Empty;
 }
 /// <summary>
 /// <para>
 /// Add the default child nodes for the current node.
 /// </para>
 /// </summary>
 /// <remarks>
 /// <para>
 /// This will add the default database type nodes.
 /// </para>
 /// </remarks>
 protected override void AddDefaultChildNodes()
 {
     base.AddDefaultChildNodes();
     DatabaseTypeNode node = new DatabaseTypeNode(new DatabaseTypeData(SR.DefaultDatabaseTypeName, typeof(SqlDatabase).AssemblyQualifiedName));
     Nodes.AddWithDefaultChildren(node);
 }