PRoConEvents.MULTIbalancer.Forbid C# (CSharp) 메소드

Forbid() 개인적인 메소드

private Forbid ( PerModeSettings perMode, UnswitchChoice choice ) : bool
perMode PerModeSettings
choice UnswitchChoice
리턴 bool
        private bool Forbid(PerModeSettings perMode, UnswitchChoice choice)
        {
            if (choice == UnswitchChoice.Always) return true;
            if (choice == UnswitchChoice.Never) return false;

            bool ret = false;
            if (choice == UnswitchChoice.LatePhaseOnly) {
            if (perMode == null) return false;
            ret = (GetPhase(perMode, false) == Phase.Late);
            }
            return ret;
        }
MULTIbalancer