/** Finds the child group of the specified group and name. */
    public int FindChildGroupIdByName(TPTabletUIGroup grp, string name)
    {
        int numChildrGroups = grp.GetNumChildGroups();

        for (int i = 0; i < numChildrGroups; i++)
        {
            TPTabletUIGroup childGrp = grp.GetChildGroup(i);
            if (childGrp.GetName() == name)
            {
                return(i);
            }
        }
        return(-1);
    }
    /** Finds the group of the specified name. */
    public TPTabletUIGroup FindGroupByName(string name)
    {
        int i;

        for (i = 0; i < m_allGroups.Count; i++)
        {
            TPTabletUIGroup grp = m_allGroups[i] as TPTabletUIGroup;
            if (grp.GetName() == name)
            {
                return(grp);
            }
        }
        return(null);
    }