Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
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();
        }
Ejemplo n.º 4
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);
     }
 }