TestDocument.TestWindow.RemoveChild C# (CSharp) Method

RemoveChild() public method

public RemoveChild ( ) : bool
return bool
        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;
        }