public IEnumerable <SystemicProcess> AllSystemicProcessesFor(SimulationSystemicProcessSelectionDTO systemicProcessSelectionDTO) { var allAvailableProcesses = _compound.AllSystemicProcessesOfType(systemicProcessSelectionDTO.SystemicProcessType).ToList(); if (allAvailableProcesses.Count == 0) { allAvailableProcesses.Add(_notAvailableSystemicProcess); } else { allAvailableProcesses.Insert(0, _notSelectedSystemicProcess); } return(allAvailableProcesses); }
private void addSystemicProcessesToTree(SystemicProcessType systemicProcessType, ITreeNode systemicProcessContainerNode) { foreach (var process in _compound.AllSystemicProcessesOfType(systemicProcessType)) { addSystemicProcessToTree(process, systemicProcessContainerNode); } }
private void addSystemicProcesses(Compound compound, ProcessSelectionGroup processSelectionGroup, SystemicProcessType systemicProcessType) { //add all systemic processes compound.AllSystemicProcessesOfType(systemicProcessType).Each(systemicProcess => { var processSelection = new SystemicProcessSelection { ProcessName = systemicProcess.Name, ProcessType = systemicProcess.SystemicProcessType }; processSelectionGroup.AddSystemicProcessSelection(processSelection); }); }