Esempio n. 1
0
        void DeserializeMapStyle(XmlElement node)
        {
            BackColor        = ST.DeserializeColor(node, "back_color", BackColor);
            ForeColor        = ST.DeserializeColor(node, "fore_color", ForeColor);
            LineColor        = ST.DeserializeColor(node, "line_color", LineColor);
            BorderColor      = ST.DeserializeColor(node, "border_color", BorderColor);
            NodeBackColor    = ST.DeserializeColor(node, "node_back_color", NodeBackColor);
            NodeForeColor    = ST.DeserializeColor(node, "node_fore_color", NodeForeColor);
            SelectColor      = ST.DeserializeColor(node, "select_color", SelectColor);
            HoverColor       = ST.DeserializeColor(node, "hover_color", HoverColor);
            LinkLineColor    = ST.DeserializeColor(node, "link_line_color", LinkLineColor);
            LayerSpace       = ST.GetInt(ST.ReadTextNode(node, "layer_space"), MindMapStyle.DefaultLayerSpace);
            ItemsSpace       = ST.GetInt(ST.ReadTextNode(node, "items_space"), MindMapStyle.DefaultItemsSpace);
            WidgetMargin     = ST.GetInt(ST.ReadTextNode(node, "widget_margin"), WidgetMargin);
            PictureThumbSize = ST.GetSize(ST.ReadTextNode(node, "picture_thumb_size"), PictureThumbSize);

            var fontNode = node.SelectSingleNode("font") as XmlElement;

            if (fontNode != null)
            {
                Font = ST.ReadFontNode(fontNode);
            }
        }