public bool RemoveChild() { if (box.Children.Length == 2) { box.Remove (button2); return true; } else if (box.Children.Length == 1) { box.Remove (button1); return true; } else return false; }