예제 #1
0
        private static IEnumerable <LineOption> GetUnusedSpecs(InterlinLineChoices curLineChoices)
        {
            var allOptions  = curLineChoices.LineOptions();
            var optionsUsed = curLineChoices.ItemsWithFlids(
                allOptions.Select(lineOption => lineOption.Flid).ToArray());

            return(allOptions.Where(option => !optionsUsed.Any(
                                        spec => spec.Flid == option.Flid)).ToList());
        }
 // Initialize the list of possible lines.
 void InitPossibilitiesList()
 {
     optionsList.Items.AddRange(m_choices.LineOptions());
 }
예제 #3
0
		private static IEnumerable<LineOption> GetUnusedSpecs(InterlinLineChoices curLineChoices)
		{
			var allOptions = curLineChoices.LineOptions();
			var optionsUsed = curLineChoices.ItemsWithFlids(
				allOptions.Select(lineOption => lineOption.Flid).ToArray());
			return allOptions.Where(option => !optionsUsed.Any(
				spec => spec.Flid == option.Flid)).ToList();
		}