private TemplateType typeFrom(PKSimBuildingBlockType buildingBlockType) { if (buildingBlockType == PKSimBuildingBlockType.SimulationSubject) { return(TemplateType.Individual | TemplateType.Population); } return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString())); }
private void addMissingItem(IComparison <IEnumerable <UsedBuildingBlock> > comparison, UsedBuildingBlock buildingBlock1, UsedBuildingBlock buildingBlock2, PKSimBuildingBlockType buildingBlockType) { var missingObject = buildingBlock1 ?? buildingBlock2; var missingItem = new MissingDiffItem { Object1 = buildingBlock1, Object2 = buildingBlock2, MissingObject1 = buildingBlock1, MissingObject2 = buildingBlock2, CommonAncestor = comparison.CommonAncestor, MissingObjectName = missingObject.Name, MissingObjectType = buildingBlockType.ToString() }; comparison.Add(missingItem); }
protected PKSimBuildingBlock(PKSimBuildingBlockType buildingBlockType) : this() { _buildingBlockType = buildingBlockType; Icon = buildingBlockType.ToString(); }
public static TemplateType AsTemplateType(this PKSimBuildingBlockType buildingBlockType) { return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString())); }