TestDocument.TestWindow.RemoveChild C# (CSharp) 메소드

RemoveChild() 공개 메소드

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