Beispiel #1
0
        public static LayoutComponent CreateLayoutComponent(XDesign_DesignLayout xDesignLayout)
        {
            var result = LayoutComponent.Create(
                xDesignLayout.layoutCategory ?? Constants.DefaultComponentCategory,
                xDesignLayout.layoutName,
                CreateFabricStyleList(xDesignLayout.fabricStyles),
                xDesignLayout.rowCount,
                xDesignLayout.columnCount,
                xDesignLayout.blockCount);

            return(result);
        }
Beispiel #2
0
            private static XDesign_DesignLayout XDesign_DesignLayout(LayoutComponent layoutComponent)
            {
                if (layoutComponent == null)
                {
                    return(null);
                }

                var result = new XDesign_DesignLayout()
                {
                    layoutName   = layoutComponent.Name,
                    fabricStyles = XDesign_FabricStyles(layoutComponent.FabricStyles),
                    rowCount     = layoutComponent.RowCount,
                    columnCount  = layoutComponent.ColumnCount,
                    blockCount   = layoutComponent.BlockCount
                };

                return(result);
            }