Example #1
0
 private async Task ReadImport(BreakpointsConfig configContents, List <string> loadedFiles)
 {
     if (!string.IsNullOrWhiteSpace(configContents._import))
     {
         var rawConfigContents = await GetConfigContents(configContents._import, loadedFiles);
         await ReadBreakPoints(rawConfigContents, loadedFiles);
     }
 }
Example #2
0
        private void ReBuildIndex(BreakpointsConfig breakpointsConfig)
        {
            var tmpIndex = new List <int>(_breakpointsIndex);

            var newItems = breakpointsConfig.breakpoints
                           .Where(b => b.maxwidth.IsNumeric())
                           .Select(b => int.Parse(b.maxwidth));

            foreach (var item in newItems)
            {
                if (!tmpIndex.Any(i => i == item))
                {
                    tmpIndex.Add(item);
                }
            }

            _breakpointsIndex = tmpIndex
                                .OrderBy(i => i)
                                .ToArray();
        }
        private void ReBuildIndex(BreakpointsConfig breakpointsConfig)
        {
            var tmpIndex = new List<int>(_breakpointsIndex);

            var newItems = breakpointsConfig.breakpoints
                                                .Where(b => b.maxwidth.IsNumeric())
                                                .Select(b => int.Parse(b.maxwidth));

            foreach (var item in newItems)
            {
                if (!tmpIndex.Any(i => i == item))
                {
                    tmpIndex.Add(item);
                }
            }

            _breakpointsIndex = tmpIndex
                                    .OrderBy(i => i)
                                    .ToArray();
        }
 private async Task ReadImport(BreakpointsConfig configContents, List<string> loadedFiles)
 {
     if (!string.IsNullOrWhiteSpace(configContents._import))
     {
         var rawConfigContents = await GetConfigContents(configContents._import, loadedFiles);
         await ReadBreakPoints(rawConfigContents, loadedFiles);
     }
 }