Esempio n. 1
0
        private TemplateType typeFrom(PKSimBuildingBlockType buildingBlockType)
        {
            if (buildingBlockType == PKSimBuildingBlockType.SimulationSubject)
            {
                return(TemplateType.Individual | TemplateType.Population);
            }

            return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString()));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 protected PKSimBuildingBlock(PKSimBuildingBlockType buildingBlockType) : this()
 {
     _buildingBlockType = buildingBlockType;
     Icon = buildingBlockType.ToString();
 }
Esempio n. 4
0
 public static TemplateType AsTemplateType(this PKSimBuildingBlockType buildingBlockType)
 {
     return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString()));
 }