コード例 #1
0
ファイル: BuildingBlockTask.cs プロジェクト: valdiman/PK-Sim
        private TemplateType typeFrom(PKSimBuildingBlockType buildingBlockType)
        {
            if (buildingBlockType == PKSimBuildingBlockType.SimulationSubject)
            {
                return(TemplateType.Individual | TemplateType.Population);
            }

            return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString()));
        }
コード例 #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);
        }
コード例 #3
0
ファイル: PKSimBuildingBlock.cs プロジェクト: valdiman/PK-Sim
 protected PKSimBuildingBlock(PKSimBuildingBlockType buildingBlockType) : this()
 {
     _buildingBlockType = buildingBlockType;
     Icon = buildingBlockType.ToString();
 }
コード例 #4
0
 public static TemplateType AsTemplateType(this PKSimBuildingBlockType buildingBlockType)
 {
     return(EnumHelper.ParseValue <TemplateType>(buildingBlockType.ToString()));
 }