PRoConEvents.MULTIbalancer.Forbid C# (CSharp) Method

Forbid() private method

private Forbid ( PerModeSettings perMode, UnswitchChoice choice ) : bool
perMode PerModeSettings
choice UnswitchChoice
return 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