Example #1
0
 public void Merge(BreakpointItemConfig breakpointConfig)
 {
     if (!base.ContainsKey(breakpointConfig.maxwidth))
     {
         base.Add(breakpointConfig.maxwidth, new BreakpointsTable());
     }
     base[breakpointConfig.maxwidth].Merge(breakpointConfig);
 }
Example #2
0
        public void Merge(BreakpointItemConfig breakpointConfig)
        {
            //this is because: System.Reflection.MemberInfo.get_MetadataToken()' cannot be used on the current platform. See http://go.microsoft.com/fwlink/?LinkId=248273 for more information.
            var jO    = breakpointConfig.properties as JObject;
            var items = jO.Children()
                        .Cast <JProperty>()
                        .Select(p => new BreakpointsItem(p.Name, p.Value.ToString()))
                        .ToList();

            Merge(items);
        }