示例#1
0
 /// <summary>
 /// Adds a site to the data base and the child tree nodes
 /// </summary>
 /// <param name="s">The site to add</param>
 /// <param name="migrate">Specifies whether to migrate it or not</param>
 public void AddSite(SSite s, bool migrate)
 {
     s.Migrate = migrate;
     this.sites.Add(s);
     this.Nodes.Add(s);
     if (s.IsSiteCollectionSite)
     {
         this.Text = s.XmlData != null ? s.XmlData.Attributes["Title"].InnerText : string.Empty;
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SList" /> class.
 /// </summary>
 public SList()
 {
     this.migrateTo = null;
 }