コード例 #1
0
        void ReverseDisableOthers(IPopUp enablingPopUp)
        {
            IPopUp parentPopUp = enablingPopUp.GetParentPopUp();

            if (parentPopUp != null)
            {
                parentPopUp.ReversePopUpDisableRecursively();
                RegisterPopUp(parentPopUp);
            }
            else
            {
                thisRootUIElement.ReversePopUpDisableRecursively();
                ClearActivePopUp();
            }
        }
コード例 #2
0
        public bool IsAncestorOf(IPopUp other)
        {
            IPopUp popUpToExamine = other.GetParentPopUp();

            while (true)
            {
                if (popUpToExamine == null)
                {
                    return(false);
                }
                if (popUpToExamine == this)
                {
                    return(true);
                }
                popUpToExamine = popUpToExamine.GetParentPopUp();
            }
        }