Beispiel #1
0
        private static void ReadStyles(this XElement topic, NodeBase node, IReadOnlyDictionary <string, XMindStyle> stylesById)
        {
            var styleId = topic.AttributeValue("style-id");

            XMindStyle style;

            if (string.IsNullOrWhiteSpace(styleId) || !stylesById.TryGetValue(styleId, out style))
            {
                return;
            }

            if (style.Color >= 0)
            {
                node.ChangeColorTransactional(new ValueColor(style.Color));
            }
        }