protected void LockABase(ConditionDetail.Condition condition, string sbasename) { if (conditions.Any(c => c.condition == condition)) { LaunchSiteManager.setSiteLocked(sbasename); } }
protected void LockABase(ConditionDetail.Condition condition, string parameterID, string sbasename) { foreach (ConditionDetail cd in conditions.Where(cd => !cd.disabled && cd.condition == condition && cd.parameter == parameterID)) { LaunchSiteManager.setSiteLocked(sbasename); cd.disabled = true; } }