/// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width     = 0.01f;
            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dot;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);

            DslDiagrams::BrushSettings textBrush = new DslDiagrams::BrushSettings();

            textBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeText, textBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.DarkGreen);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.DarkGreen);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width     = 0.01f;
            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dash;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dash;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
        }
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Width = 0.01f;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
        }
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0.01F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
        }
Esempio n. 7
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromArgb(255, 0, 186, 255);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width = 0.02f;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromArgb(255, 0, 186, 255);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);

            DslDiagrams::BrushSettings textBrush = new DslDiagrams::BrushSettings();

            textBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.DimGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeText, textBrush);
        }
Esempio n. 8
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0.01F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromArgb(255, 212, 219, 212);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
        }
Esempio n. 9
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width = 0.01f;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 7 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold7"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Esempio n. 10
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0.015625F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 10 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Width     = 0.015625f;
            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dot;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Esempio n. 12
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.WhiteSmoke);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold | global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 10 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold, Italic10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Esempio n. 13
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Color = global::System.Drawing.Color.FromArgb(255, 24, 143, 222);
            outlinePen.Width = 0.01F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromArgb(255, 0, 122, 204);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }