Example #1
0
        private static CycleOverride GetOverrideFromInstanceData(string overrideId, Instance instanceData)
        {
            CycleOverride result = null;

            var val = instanceData.Values.Find(x => x.Id == overrideId);

            if (val != null)
            {
                double d = -1;
                if (double.TryParse(val.Value, out d))
                {
                    result       = new CycleOverride();
                    result.Id    = overrideId;
                    result.Value = d;
                }
            }

            return(result);
        }
Example #2
0
        private static CycleOverride GetOverrideFromInstanceData(string overrideId, Instance instanceData)
        {
            CycleOverride result = null;

            var val = instanceData.Values.Find(x => x.Id == overrideId);
            if (val != null)
            {
                double d = -1;
                if (double.TryParse(val.Value, out d))
                {
                    result = new CycleOverride();
                    result.Id = overrideId;
                    result.Value = d;
                }
            }

            return result;
        }