Пример #1
0
        public Mapping GetRootMapping()
        {
            if (parent == null)
            {
                return(this);
            }

            return(parent.GetRootMapping());
        }
Пример #2
0
        public virtual PlansLog FindPlansLogFromMapping(Agent agent, Mapping mapping)
        {
            int num = agentsPlansLogs[agent].Count;

            if (num == 0)
            {
                return(null);
            }

            return(agentsPlansLogs[agent].Find(
                       x => x.allPlans[x.chosenDriveType].rootMappings[x.chosenPlanIndex] == mapping.GetRootMapping()));
        }