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