Esempio n. 1
0
 public void AddGroup(SPTreeNodeGroup group)
 {
     try
     {
         treeGroups.Add(group);
         if (this.AutoBuildTree)
         {
             this.BuildTree();
         }
     }
     catch (NotSupportedException e)
     {
         MessageBox.Show(e.Message);
     }
     catch (System.Exception e)
     {
         throw (e);
     }
 }
Esempio n. 2
0
 public void AddGroup(string name, string groupBy, string displayMember, string valueMember, int imageIndex, int selectedImageIndex)
 {
     SPTreeNodeGroup myNewGroup = new SPTreeNodeGroup(name, groupBy, displayMember, valueMember, imageIndex, selectedImageIndex);
     this.AddGroup(myNewGroup);
 }
Esempio n. 3
0
 public void RemoveGroup(SPTreeNodeGroup group)
 {
     if (treeGroups.Contains(group))
     {
         treeGroups.Remove(group);
         if (this.AutoBuildTree)
         {
             BuildTree();
         }
     }
 }