internal void AdjustRadioGroupDepth(GObject obj, Controller c)
{
int cnt = _children.Count;
int i;
GObject child;
int myIndex = -1, maxIndex = -1;
for (i = 0; i < cnt; i++)
{
child = _children[i];
if (child == obj)
{
myIndex = i;
}
else if ((child is GButton)
&& ((GButton)child).relatedController == c)
{
if (i > maxIndex)
maxIndex = i;
}
}
if (myIndex < maxIndex)
this.SwapChildrenAt(myIndex, maxIndex);
}