public bool Validate(IEnumerable <Tuple <UnitConfigurationLink, int> > Units)
 {
     if (Units == null)
     {
         return(false);
     }
     return(Parameters.Matches(Units));
 }
Beispiel #2
0
        void FilterUnits()
        {
            _AvailableUnits.Clear();
            UnitClass filterClass = _UnitClassSelect.Value.Value;

            foreach (UnitConfigurationLink link in _Links.OrderBy(i => i.UnitConfiguration.Name))
            {
                if ((filterClass == UnitClass.NONE || link.UnitConfiguration.UnitClass == filterClass) &&
                    _Parameters.Matches(link))
                {
                    _AvailableUnits.Add(link);
                }
            }
        }
 public bool Matches(UnitConfigurationLink Link)
 {
     return(Parameters.Matches(Link));
 }