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); } }
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); }
public void RemoveGroup(SPTreeNodeGroup group) { if (treeGroups.Contains(group)) { treeGroups.Remove(group); if (this.AutoBuildTree) { BuildTree(); } } }