private void RemoveGroupIfEmpty(PBXGroupData gr)
{
if ((gr.children.Count == 0) && (gr != this.GroupsGetMainGroup()))
{
PBXGroupData data = this.GroupsGetByChild(gr.guid);
data.children.RemoveGUID(gr.guid);
this.RemoveGroupIfEmpty(data);
this.GroupsRemove(gr.guid);
}
}