Exemple #1
0
        private void ReadEdgeStyles(IPropertySetModule <EdgeStyle> module)
        {
            var count = myReader.ReadInt32();

            for (int i = 0; i < count; ++i)
            {
                var style = new EdgeStyle(myReader.ReadString());
                style.Color = (Brush)myBrushConverter.ConvertFromString(myReader.ReadString());
                style.Style = myReader.ReadString();
                module.Add(style);
            }
        }
        public EdgeStyle ReadEdgeStyle( string edgeId )
        {
            var style = new EdgeStyle( edgeId );
            style.Style = myReader.ReadString();
            style.Color = StyleConverter.GetBrush( myReader.ReadString() );

            return style;
        }