/// <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);
        }
        /// <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);
        }
        /// <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);
        }
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);
        }
Esempio n. 5
0
        /// <summary>
        /// Custom storage for domain property DashStyle.
        /// </summary>
        private global::System.Drawing.Drawing2D.DashStyle GetDashStyleValue()
        {
            DslDiagrams::PenSettings settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLine);

            if (settings != null && settings.IsOverridden(DslDiagrams::PenSettingsFlags.DashStyle))
            {
                return(settings.DashStyle);
            }
            return(global::System.Drawing.Drawing2D.DashStyle.Solid);
        }
Esempio n. 6
0
        /// <summary>
        /// Custom storage for domain property FillColor.
        /// </summary>
        private global::System.Drawing.Color GetColorValue()
        {
            DslDiagrams::PenSettings settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLine);

            if (settings != null && settings.IsOverridden(DslDiagrams::PenSettingsFlags.Color))
            {
                return(settings.Color);
            }
            return(global::System.Drawing.Color.FromArgb(255, 113, 111, 110));
        }
Esempio n. 7
0
        /// <summary>
        /// Custom storage for domain property DashStyle.
        /// </summary>
        private void SetDashStyleValue(global::System.Drawing.Drawing2D.DashStyle newValue)
        {
            DslDiagrams::PenSettings settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLine);

            if (settings == null)
            {
                settings = new DslDiagrams::PenSettings();
            }
            settings.DashStyle = newValue;
            this.StyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, settings);
            this.Invalidate();
        }
        /// <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);
            DslDiagrams::BrushSettings textBrush = new DslDiagrams::BrushSettings();

            textBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeText, textBrush);
        }
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);

            // 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. 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);
			
			// 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);
			
		}
Esempio n. 11
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. 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 = 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);
        }
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);

            // 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);
        }
        /// <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. 15
0
        /// <summary>
        /// Custom storage for domain property FillColor.
        /// </summary>
        private void SetColorValue(global::System.Drawing.Color newValue)
        {
            DslDiagrams::PenSettings settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLine);

            if (settings == null)
            {
                settings = new DslDiagrams::PenSettings();
            }
            settings.Color = newValue;
            this.StyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, settings);
            settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLineDecorator);
            if (settings == null)
            {
                settings = new DslDiagrams::PenSettings();
            }
            settings.Color = newValue;
            this.StyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, settings);
            this.Invalidate();
        }
Esempio n. 16
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. 17
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);
        }
Esempio n. 18
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. 19
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.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dash;
			// Property:
			//	private static ArrayList customOutlineDashPattern;
			//	protected static ArrayList CustomOutlineDashPattern
			//	{
			//		get
			//		{
			//			if(customOutlineDashPattern == null)
			//				customOutlineDashPattern = new ArrayList(new float[] { 4.0F, 2.0F, 1.0F, 3.0F });
			//			return customOutlineDashPattern;
			//		}
			//	}
			// must be implemented in a partial class of DmitriNesteruk.AsyncDsl.CommentShape. This property should
			// return an ArrayList of float values containing the custom DashPattern to use for this shape.
			outlinePen.DashPattern = global::DmitriNesteruk.AsyncDsl.CommentShape.CustomOutlineDashPattern;
			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, 255, 255, 192);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
		
		}
Esempio n. 20
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, 204, 204, 102);
			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, 255, 255, 204);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
		
		}
Esempio n. 21
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);
		}
Esempio n. 22
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.DarkGoldenrod);
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
			linePen.Width = 0.0125f;
			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.FromKnownColor(global::System.Drawing.KnownColor.DarkGoldenrod);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);
			
		}
Esempio n. 23
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.Width = 0.01f;
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
		}
Esempio n. 24
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.0125F;
			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.PaleGreen);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
		
			// Custom font styles
			DslDiagrams::FontSettings fontSettings;
			fontSettings = new DslDiagrams::FontSettings();
			fontSettings.Style =  global::System.Drawing.FontStyle.Italic ;
			fontSettings.Size = 7/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic7"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
		}
Esempio n. 25
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. 26
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, 113, 111, 110);
			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, 242, 239, 229);
			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.Underline ;
			fontSettings.Size = 10/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold, Underline10"), DslDiagrams::DiagramFonts.ShapeText, 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.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dash;
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
		}