Ejemplo n.º 1
0
        private void _SetBlend(System.Drawing.Drawing2D.Blend blend)
        {
            int    length      = blend.Factors.Length;
            IntPtr zero        = IntPtr.Zero;
            IntPtr destination = IntPtr.Zero;

            try
            {
                int cb = 4 * length;
                zero        = Marshal.AllocHGlobal(cb);
                destination = Marshal.AllocHGlobal(cb);
                Marshal.Copy(blend.Factors, 0, zero, length);
                Marshal.Copy(blend.Positions, 0, destination, length);
                int status = SafeNativeMethods.Gdip.GdipSetPathGradientBlend(new HandleRef(this, base.NativeBrush), new HandleRef(null, zero), new HandleRef(null, destination), length);
                if (status != 0)
                {
                    throw SafeNativeMethods.Gdip.StatusException(status);
                }
            }
            finally
            {
                if (zero != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(zero);
                }
                if (destination != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(destination);
                }
            }
        }
Ejemplo n.º 2
0
        protected override void OnDraw(GraphicsCache graphics, System.Drawing.RectangleF area)
        {
            if (FirstColor != Color.Empty || SecondColor != Color.Empty)
            {
                if (FirstColor == SecondColor)
                {
                    SolidBrush brush = graphics.BrushsCache.GetBrush(FirstColor);
                    graphics.Graphics.FillRectangle(brush, area);
                }
                else
                {
                    using (System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(area, FirstColor, SecondColor, Angle))
                    {
                        if (BlendFactors != null && BlendPositions != null &&
                            BlendFactors.Length == BlendPositions.Length)
                        {
                            System.Drawing.Drawing2D.Blend blend = new System.Drawing.Drawing2D.Blend();
                            blend.Factors   = BlendFactors;
                            blend.Positions = BlendPositions;

                            brush.Blend = blend;
                        }

                        graphics.Graphics.FillRectangle(brush, area);
                    }
                }
            }
        }
        private System.Drawing.Drawing2D.Blend _GetBlend()
        {
            System.Drawing.Drawing2D.Blend blend;
            if (this.interpolationColorsWasSet)
            {
                return(null);
            }
            int count  = 0;
            int status = SafeNativeMethods.Gdip.GdipGetLineBlendCount(new HandleRef(this, base.NativeBrush), out count);

            if (status != 0)
            {
                throw SafeNativeMethods.Gdip.StatusException(status);
            }
            if (count <= 0)
            {
                return(null);
            }
            int    num3      = count;
            IntPtr zero      = IntPtr.Zero;
            IntPtr positions = IntPtr.Zero;

            try
            {
                int cb = 4 * num3;
                zero      = Marshal.AllocHGlobal(cb);
                positions = Marshal.AllocHGlobal(cb);
                status    = SafeNativeMethods.Gdip.GdipGetLineBlend(new HandleRef(this, base.NativeBrush), zero, positions, num3);
                if (status != 0)
                {
                    throw SafeNativeMethods.Gdip.StatusException(status);
                }
                blend = new System.Drawing.Drawing2D.Blend(num3);
                Marshal.Copy(zero, blend.Factors, 0, num3);
                Marshal.Copy(positions, blend.Positions, 0, num3);
            }
            finally
            {
                if (zero != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(zero);
                }
                if (positions != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(positions);
                }
            }
            return(blend);
        }
Ejemplo n.º 4
0
 private Blend(System.Drawing.Drawing2D.Blend blend)
 {
     WrappedBlend = blend;
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:Common.Drawing.Drawing2D.Blend" /> class with the specified
 ///     number of factors and positions.
 /// </summary>
 /// <param name="count">
 ///     The number of elements in the <see cref="P:Common.Drawing.Drawing2D.Blend.Factors" /> and
 ///     <see cref="P:Common.Drawing.Drawing2D.Blend.Positions" /> arrays.
 /// </param>
 public Blend(int count)
 {
     WrappedBlend = new System.Drawing.Drawing2D.Blend(count);
 }
Ejemplo n.º 6
0
        protected override void OnPaintBackground(PaintEventArgs pevent)
        {
            //Simulate Transparency
            System.Drawing.Drawing2D.GraphicsContainer g = pevent.Graphics.BeginContainer();
            Rectangle translateRect = this.Bounds;

            pevent.Graphics.TranslateTransform(-this.Left, -this.Top);
            PaintEventArgs pe = new PaintEventArgs(pevent.Graphics, translateRect);

            this.InvokePaintBackground(this.Parent, pe);
            this.InvokePaint(this.Parent, pe);
            pevent.Graphics.ResetTransform();
            pevent.Graphics.EndContainer(g);

            pevent.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;

            Color shadeColor, fillColor;
            Color darkColor       = DarkenColor(this.BackColor, 10);
            Color darkDarkColor   = DarkenColor(this.BackColor, 25);
            Color lightColor      = LightenColor(this.BackColor, 25);
            Color lightLightColor = LightenColor(this.BackColor, 60);

            // 不显示渐变
            if (!GradientMode)
            {
                darkColor       = this.BackColor;
                darkDarkColor   = this.BackColor;
                lightColor      = this.BackColor;
                lightLightColor = this.BackColor;
            }
            else
            {
            }


            if (this.ButtonState == CustomButtonState.Hot)
            {
                fillColor  = lightColor;
                shadeColor = darkDarkColor;
            }
            else if (this.ButtonState == CustomButtonState.Pressed)
            {
                fillColor  = this.BackColor;
                shadeColor = this.BackColor;
            }
            else
            {
                fillColor  = this.BackColor;
                shadeColor = darkDarkColor;
            }

            Rectangle r = this.ClientRectangle;

            System.Drawing.Drawing2D.GraphicsPath path = RoundRectangle(r, this.CornerRadius, this.RoundCorners);

            System.Drawing.Drawing2D.LinearGradientBrush paintBrush = new System.Drawing.Drawing2D.LinearGradientBrush(r, fillColor, shadeColor, System.Drawing.Drawing2D.LinearGradientMode.Vertical);


            //We want a sharp change in the colors so define a Blend for the brush
            if (ShadeMode)
            {
                System.Drawing.Drawing2D.Blend b = new System.Drawing.Drawing2D.Blend();
                b.Positions      = new float[] { 0, 0.45F, 0.55F, 1 };
                b.Factors        = new float[] { 0, 0, 1, 1 };
                paintBrush.Blend = b;
            }

            //Draw the Button Background
            pevent.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            pevent.Graphics.FillPath(paintBrush, path);
            paintBrush.Dispose();

            //...and border
            Pen drawingPen = new Pen(BorderColor);

            pevent.Graphics.DrawPath(drawingPen, path);
            drawingPen.Dispose();

            //Get the Rectangle to be used for Content
            bool inBounds = false;

            //We could use some Math to get this from the radius but I'm
            //not great at Math so for the example this hack will suffice.
            while (!inBounds && r.Width >= 1 && r.Height >= 1)
            {
                inBounds = path.IsVisible(r.Left, r.Top) &&
                           path.IsVisible(r.Right, r.Top) &&
                           path.IsVisible(r.Left, r.Bottom) &&
                           path.IsVisible(r.Right, r.Bottom);
                r.Inflate(-1, -1);
            }

            contentRect = r;
        }
Ejemplo n.º 7
0
        protected override void PaintControlBackground(ItemPaintArgs pa)
        {
            bool resetClip = false;
            eDotNetBarStyle effectiveStyle = this.EffectiveStyle;

            bool isGlassEnabled = this.IsGlassEnabled;
            if (isGlassEnabled)
            {
                RibbonForm f = this.FindForm() as RibbonForm;
                if (f != null)
                {
                    pa.Graphics.SetClip(new Rectangle(0, 0, this.Width, f.GlassHeight - ((effectiveStyle == eDotNetBarStyle.Office2010 || effectiveStyle == eDotNetBarStyle.Metro) && pa.GlassEnabled ? Office2010GlassExcludeTopPart : 1)),
                        System.Drawing.Drawing2D.CombineMode.Exclude);
                    resetClip = true;
                }
            }

            if (isGlassEnabled && (effectiveStyle == eDotNetBarStyle.Office2010 || effectiveStyle == eDotNetBarStyle.Metro))
            {
                ElementStyle style = GetBackgroundStyle();
                if (style != null)
                {
                    Rectangle r = new Rectangle(0, Office2010GlassExcludeTopPart - 2, this.Width, this.Height + 8);
                    using (System.Drawing.Drawing2D.GraphicsPath fillPath = new System.Drawing.Drawing2D.GraphicsPath())
                    {
                        //if (StyleManager.Style == eStyle.Office2010Black)
                        //{
                        //    fillPath.AddRectangle(r);
                        //    using (System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(r, style.BackColor2, style.BackColor, 90))
                        //        pa.Graphics.FillPath(brush, fillPath);
                        //}
                        //else
                        {
                            fillPath.AddEllipse(r);
                            using (System.Drawing.Drawing2D.PathGradientBrush brush = new System.Drawing.Drawing2D.PathGradientBrush(fillPath))
                            {
                                brush.CenterColor = style.BackColor;
                                brush.SurroundColors = new Color[] { style.BackColor2 };
                                brush.CenterPoint = new PointF(r.Width / 2, r.Bottom - Office2010GlassExcludeTopPart / 2);
                                System.Drawing.Drawing2D.Blend blend = new System.Drawing.Drawing2D.Blend();
                                blend.Factors = new float[] { 0f, .85f, 1f, };
                                blend.Positions = new float[] { 0f, .65f, 1f };
                                brush.Blend = blend;
                                pa.Graphics.FillPath(brush, fillPath);
                            }
                        }
                    }
                }
            }
            else
                base.PaintControlBackground(pa);

            if (resetClip) pa.Graphics.ResetClip();

            m_QuickToolbarBounds = Rectangle.Empty;
            m_CaptionBounds = Rectangle.Empty;
            m_SystemCaptionItemBounds = Rectangle.Empty;

            Rendering.BaseRenderer renderer = GetRenderer();
            if (renderer != null && this.Parent is RibbonControl)
            {
                RibbonControlRendererEventArgs rargs = new RibbonControlRendererEventArgs(pa.Graphics, this.Parent as RibbonControl, pa.GlassEnabled);
                rargs.ItemPaintArgs = pa;
                renderer.DrawRibbonControlBackground(rargs);

                if (m_CaptionVisible)
                    renderer.DrawQuickAccessToolbarBackground(new RibbonControlRendererEventArgs(pa.Graphics, this.Parent as RibbonControl, pa.GlassEnabled));
            }

            if (m_TabGroupsVisible)
            {
                PaintTabGroups(pa);
            }

            // Paint form caption text
            if (renderer != null && m_CaptionVisible)
            {
                RibbonControlRendererEventArgs rer = new RibbonControlRendererEventArgs(pa.Graphics, this.Parent as RibbonControl, pa.GlassEnabled);
                rer.ItemPaintArgs = pa;
                renderer.DrawRibbonFormCaptionText(rer);
            }

#if TRIAL
            if (NativeFunctions.ColorExpAlt())
				{
					pa.Graphics.Clear(Color.White);
					TextDrawing.DrawString(pa.Graphics, "Trial Version Expired :-(", this.Font, Color.FromArgb(128, Color.Black), this.ClientRectangle, eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter);
				}
                //else
                //{
                //    TextDrawing.DrawString(pa.Graphics, "Trial Version", this.Font, Color.FromArgb(128, Color.Black), new Rectangle(0, 0, this.Width - 12, this.Height-4), eTextFormat.Right | eTextFormat.Bottom);
                //}
#endif
        }
 private System.Drawing.Drawing2D.Blend _GetBlend()
 {
     System.Drawing.Drawing2D.Blend blend;
     int count = 0;
     int status = SafeNativeMethods.Gdip.GdipGetPathGradientBlendCount(new HandleRef(this, base.NativeBrush), out count);
     if (status != 0)
     {
         throw SafeNativeMethods.Gdip.StatusException(status);
     }
     int num3 = count;
     IntPtr zero = IntPtr.Zero;
     IntPtr positions = IntPtr.Zero;
     try
     {
         int cb = 4 * num3;
         zero = Marshal.AllocHGlobal(cb);
         positions = Marshal.AllocHGlobal(cb);
         status = SafeNativeMethods.Gdip.GdipGetPathGradientBlend(new HandleRef(this, base.NativeBrush), zero, positions, num3);
         if (status != 0)
         {
             throw SafeNativeMethods.Gdip.StatusException(status);
         }
         blend = new System.Drawing.Drawing2D.Blend(num3);
         Marshal.Copy(zero, blend.Factors, 0, num3);
         Marshal.Copy(positions, blend.Positions, 0, num3);
     }
     finally
     {
         if (zero != IntPtr.Zero)
         {
             Marshal.FreeHGlobal(zero);
         }
         if (positions != IntPtr.Zero)
         {
             Marshal.FreeHGlobal(positions);
         }
     }
     return blend;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 初始化<see cref="AuroraFramework.Forms.Control.AuroraGradientColor"/>结构的新实例
 /// </summary>
 /// <param name="fColor">初始颜色</param>
 /// <param name="tColor">结束颜色</param>
 /// <param name="gradientMode">线性渐变模式</param>
 /// <param name="blend"><see cref="LinearGradientBrush"/>对象的混合图案</param>
 public AuroraGradientColor(System.Drawing.Color fColor, System.Drawing.Color tColor, System.Drawing.Drawing2D.LinearGradientMode gradientMode, System.Drawing.Drawing2D.Blend blend)
 {
     this.FromColor    = fColor;
     this.ToColor      = tColor;
     this.GradientMode = gradientMode;
     this.Factors      = blend == null ? new float[] { } : (blend.Factors ?? (new float[] { }));
     this.Positions    = blend == null ? new float[] { } : (blend.Positions ?? (new float[] { }));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Overview));
     System.Drawing.Drawing2D.Blend blend1 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend2 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend3 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend4 = new System.Drawing.Drawing2D.Blend();
     this.c1SuperTooltip1  = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.button1          = new System.Windows.Forms.Button();
     this.toolTip1         = new System.Windows.Forms.ToolTip(this.components);
     this.timer1           = new System.Windows.Forms.Timer(this.components);
     this.c1Sizer1         = new C1.Win.C1Sizer.C1Sizer();
     this.label1           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.label3           = new System.Windows.Forms.Label();
     this.c1Sizer2         = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer3         = new C1.Win.C1Sizer.C1Sizer();
     this.label4           = new System.Windows.Forms.Label();
     this.label6           = new System.Windows.Forms.Label();
     this.c1Sizer4         = new C1.Win.C1Sizer.C1Sizer();
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.c1Sizer5         = new C1.Win.C1Sizer.C1Sizer();
     this.label7           = new System.Windows.Forms.Label();
     this.c1superCorners   = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.c1superFade      = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.label5           = new System.Windows.Forms.Label();
     this.c1superGradients = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.c1superBalloon   = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.panel1           = new System.Windows.Forms.Panel();
     this.c1Sizer7         = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer6         = new C1.Win.C1Sizer.C1Sizer();
     this.c1superDelay     = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.c1superShadow    = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).BeginInit();
     this.c1Sizer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).BeginInit();
     this.c1Sizer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).BeginInit();
     this.c1Sizer3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).BeginInit();
     this.c1Sizer4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).BeginInit();
     this.c1Sizer5.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer7)).BeginInit();
     this.c1Sizer7.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).BeginInit();
     this.c1Sizer6.SuspendLayout();
     this.SuspendLayout();
     //
     // c1SuperTooltip1
     //
     this.c1SuperTooltip1.Font = new System.Drawing.Font("Tahoma", 8F);
     this.c1SuperTooltip1.Images.Add(new C1.Win.C1SuperTooltip.ImageEntry("supertooltip.png", ((System.Drawing.Image)(resources.GetObject("c1SuperTooltip1.Images")))));
     this.c1SuperTooltip1.MaximumWidth = 200;
     this.c1SuperTooltip1.Opacity      = 1;
     this.c1SuperTooltip1.ShowAlways   = true;
     //
     // button1
     //
     this.button1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.Location = new System.Drawing.Point(244, 364);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(96, 42);
     this.button1.TabIndex = 11;
     this.button1.Text     = "Custom";
     this.c1SuperTooltip1.SetToolTip(this.button1, resources.GetString("button1.ToolTip"));
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // c1Sizer1
     //
     this.c1Sizer1.Border.Corners   = new C1.Win.C1Sizer.Corners(10, 10, 10, 10);
     this.c1Sizer1.Border.Thickness = new System.Windows.Forms.Padding(2);
     this.c1Sizer1.Controls.Add(this.label1);
     this.c1Sizer1.Gradient.BackColor2 = System.Drawing.Color.RoyalBlue;
     blend1.Factors = new float[] {
         0F,
         1F
     };
     blend1.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer1.Gradient.Blend = blend1;
     this.c1Sizer1.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer1.GridDefinition = "76:False:False;\t91.304347826087:False:False;";
     this.c1Sizer1.Location       = new System.Drawing.Point(47, 24);
     this.c1Sizer1.Name           = "c1Sizer1";
     this.c1Sizer1.Size           = new System.Drawing.Size(138, 50);
     this.c1Sizer1.TabIndex       = 0;
     this.c1Sizer1.Text           = "c1Sizer1";
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(0, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(138, 50);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Opacity";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.c1superCorners.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
     //
     // label2
     //
     this.label2.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.label2.Location  = new System.Drawing.Point(11, 9);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(132, 40);
     this.label2.TabIndex  = 0;
     this.label2.Text      = "label2";
     //
     // label3
     //
     this.label3.BackColor = System.Drawing.SystemColors.ButtonShadow;
     this.label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
     this.label3.Location  = new System.Drawing.Point(4, 4);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(130, 39);
     this.label3.TabIndex  = 2;
     this.label3.Text      = "Shadow";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.c1superShadow.SetToolTip(this.label3, resources.GetString("label3.ToolTip"));
     //
     // c1Sizer2
     //
     this.c1Sizer2.Controls.Add(this.label3);
     this.c1Sizer2.Controls.Add(this.label2);
     this.c1Sizer2.GridDefinition = "1.88679245283019:False:False;64.1509433962264:False:False;3.77358490566038:False:" +
                                    "False;\t2.04081632653061:False:False;83.6734693877551:False:False;3.4013605442176" +
                                    "9:False:False;";
     this.c1Sizer2.Location = new System.Drawing.Point(136, 117);
     this.c1Sizer2.Name     = "c1Sizer2";
     this.c1Sizer2.Size     = new System.Drawing.Size(147, 53);
     this.c1Sizer2.TabIndex = 3;
     this.c1Sizer2.Text     = "c1Sizer2";
     //
     // c1Sizer3
     //
     this.c1Sizer3.BackColor = System.Drawing.Color.LemonChiffon;
     this.c1Sizer3.Controls.Add(this.label4);
     this.c1Sizer3.Gradient.BackColor2 = System.Drawing.Color.Gold;
     blend2.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend2.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer3.Gradient.Blend = blend2;
     this.c1Sizer3.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer3.GridDefinition = "85.9649122807018:False:False;\t93.8461538461538:False:False;";
     this.c1Sizer3.Location       = new System.Drawing.Point(234, 38);
     this.c1Sizer3.Name           = "c1Sizer3";
     this.c1Sizer3.Size           = new System.Drawing.Size(130, 57);
     this.c1Sizer3.TabIndex       = 4;
     this.c1Sizer3.Text           = "c1Sizer3";
     //
     // label4
     //
     this.label4.BackColor = System.Drawing.Color.Transparent;
     this.label4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location  = new System.Drawing.Point(4, 4);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(124, 51);
     this.label4.TabIndex  = 0;
     this.label4.Text      = "Gradients";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.c1superGradients.SetToolTip(this.label4, resources.GetString("label4.ToolTip"));
     //
     // label6
     //
     this.label6.AutoSize  = true;
     this.label6.BackColor = System.Drawing.Color.White;
     this.label6.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.Location  = new System.Drawing.Point(38, 57);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(54, 16);
     this.label6.TabIndex  = 7;
     this.label6.Text      = "Balloon";
     //
     // c1Sizer4
     //
     this.c1Sizer4.Controls.Add(this.label6);
     this.c1Sizer4.GridDefinition = "36.5671641791045:False:True;23.134328358209:False:True;28.3582089552239:False:Fal" +
                                    "se;\t21.5827338129496:False:True;40.2877697841727:False:True;26.6187050359712:Fal" +
                                    "se:False;";
     this.c1Sizer4.Image          = ((System.Drawing.Image)(resources.GetObject("c1Sizer4.Image")));
     this.c1Sizer4.ImageAlignment = C1.Win.C1Sizer.ImageAlignment.LeftTop;
     this.c1Sizer4.Location       = new System.Drawing.Point(393, 24);
     this.c1Sizer4.Name           = "c1Sizer4";
     this.c1Sizer4.Size           = new System.Drawing.Size(139, 134);
     this.c1Sizer4.TabIndex       = 8;
     this.c1Sizer4.Text           = "c1Sizer4";
     this.c1superBalloon.SetToolTip(this.c1Sizer4, resources.GetString("c1Sizer4.ToolTip"));
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
     this.pictureBox1.Image     = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location  = new System.Drawing.Point(106, 4);
     this.pictureBox1.Name      = "pictureBox1";
     this.pictureBox1.Size      = new System.Drawing.Size(56, 55);
     this.pictureBox1.TabIndex  = 9;
     this.pictureBox1.TabStop   = false;
     this.c1superDelay.SetToolTip(this.pictureBox1, resources.GetString("pictureBox1.ToolTip"));
     //
     // c1Sizer5
     //
     this.c1Sizer5.BackColor = System.Drawing.Color.OliveDrab;
     this.c1Sizer5.Controls.Add(this.label7);
     this.c1Sizer5.Controls.Add(this.pictureBox1);
     blend3.Factors = new float[] {
         0.68F,
         0.98F
     };
     blend3.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer5.Gradient.Blend = blend3;
     this.c1Sizer5.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer5.GridDefinition = "87.3015873015873:False:False;\t59.0361445783133:False:False;33.7349397590361:False" +
                                    ":False;";
     this.c1Sizer5.Location = new System.Drawing.Point(287, 189);
     this.c1Sizer5.Name     = "c1Sizer5";
     this.c1Sizer5.Size     = new System.Drawing.Size(166, 63);
     this.c1Sizer5.TabIndex = 10;
     this.c1Sizer5.Text     = "c1Sizer5";
     this.c1superDelay.SetToolTip(this.c1Sizer5, resources.GetString("c1Sizer5.ToolTip"));
     //
     // label7
     //
     this.label7.BackColor = System.Drawing.Color.Transparent;
     this.label7.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.Location  = new System.Drawing.Point(4, 4);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(98, 55);
     this.label7.TabIndex  = 10;
     this.label7.Text      = "Timed Delay";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.c1superDelay.SetToolTip(this.label7, resources.GetString("label7.ToolTip"));
     //
     // c1superCorners
     //
     this.c1superCorners.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.None;
     this.c1superCorners.Font           = new System.Drawing.Font("Tahoma", 8F);
     this.c1superCorners.Opacity        = 0.5;
     this.c1superCorners.RoundedCorners = true;
     this.c1superCorners.UseFading      = false;
     //
     // c1superFade
     //
     this.c1superFade.BackColor             = System.Drawing.Color.Black;
     this.c1superFade.BackgroundGradient    = C1.Win.C1SuperTooltip.BackgroundGradient.Silver;
     this.c1superFade.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("c1superFade.BackgroundImage")));
     this.c1superFade.BackgroundImageLayout = C1.Win.C1SuperTooltip.BackgroundImageLayout.Zoom;
     this.c1superFade.Font    = new System.Drawing.Font("Tahoma", 8F);
     this.c1superFade.Opacity = 1;
     this.c1superFade.Shadow  = false;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.Transparent;
     this.label5.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location  = new System.Drawing.Point(3, 3);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(142, 36);
     this.label5.TabIndex  = 0;
     this.label5.Text      = "Background Image";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.c1superFade.SetToolTip(this.label5, "<div style=\"height:100;width:100\"><center><br>\n<br>\n<br>\n<b>Pow!</b></center></di" +
                                 "v>");
     //
     // c1superGradients
     //
     this.c1superGradients.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold;
     this.c1superGradients.Font    = new System.Drawing.Font("Tahoma", 8F);
     this.c1superGradients.Opacity = 1;
     //
     // c1superBalloon
     //
     this.c1superBalloon.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Blue;
     this.c1superBalloon.Font      = new System.Drawing.Font("Tahoma", 8F);
     this.c1superBalloon.IsBalloon = true;
     this.c1superBalloon.Opacity   = 1;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.c1Sizer7);
     this.panel1.Controls.Add(this.c1Sizer1);
     this.panel1.Controls.Add(this.c1Sizer2);
     this.panel1.Controls.Add(this.c1Sizer5);
     this.panel1.Controls.Add(this.c1Sizer3);
     this.panel1.Controls.Add(this.c1Sizer4);
     this.panel1.Location = new System.Drawing.Point(4, 4);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(584, 356);
     this.panel1.TabIndex = 12;
     //
     // c1Sizer7
     //
     this.c1Sizer7.BackColor = System.Drawing.SystemColors.Control;
     this.c1Sizer7.Controls.Add(this.label5);
     this.c1Sizer7.Gradient.BackColor2 = System.Drawing.Color.DimGray;
     blend4.Factors = new float[] {
         0F,
         1F
     };
     blend4.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer7.Gradient.Blend = blend4;
     this.c1Sizer7.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Horizontal;
     this.c1Sizer7.GridDefinition = "79.4871794871795:False:False;\t94.5945945945946:False:False;";
     this.c1Sizer7.Location       = new System.Drawing.Point(47, 209);
     this.c1Sizer7.Name           = "c1Sizer7";
     this.c1Sizer7.Size           = new System.Drawing.Size(148, 39);
     this.c1Sizer7.TabIndex       = 11;
     this.c1Sizer7.Text           = "c1Sizer7";
     //
     // c1Sizer6
     //
     this.c1Sizer6.Controls.Add(this.panel1);
     this.c1Sizer6.Controls.Add(this.button1);
     this.c1Sizer6.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.c1Sizer6.GridDefinition = "79.8206278026906:False:False;9.41704035874439:False:False;7.17488789237668:False:" +
                                    "False;\t39.8648648648649:False:False;16.2162162162162:False:False;41.216216216216" +
                                    "2:False:False;";
     this.c1Sizer6.Location = new System.Drawing.Point(0, 0);
     this.c1Sizer6.Name     = "c1Sizer6";
     this.c1Sizer6.Size     = new System.Drawing.Size(592, 446);
     this.c1Sizer6.TabIndex = 13;
     this.c1Sizer6.Text     = "c1Sizer6";
     //
     // c1superDelay
     //
     this.c1superDelay.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Olive;
     this.c1superDelay.Font         = new System.Drawing.Font("Tahoma", 8F);
     this.c1superDelay.InitialDelay = 2000;
     this.c1superDelay.Opacity      = 1;
     this.c1superDelay.ReshowDelay  = 0;
     //
     // c1superShadow
     //
     this.c1superShadow.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Vista;
     this.c1superShadow.Font           = new System.Drawing.Font("Tahoma", 8F);
     this.c1superShadow.Opacity        = 1;
     this.c1superShadow.RoundedCorners = true;
     this.c1superShadow.UseFading      = false;
     //
     // Overview
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(592, 446);
     this.Controls.Add(this.c1Sizer6);
     this.Name = "Overview";
     this.Text = "Overview";
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).EndInit();
     this.c1Sizer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).EndInit();
     this.c1Sizer2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).EndInit();
     this.c1Sizer3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).EndInit();
     this.c1Sizer4.ResumeLayout(false);
     this.c1Sizer4.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).EndInit();
     this.c1Sizer5.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer7)).EndInit();
     this.c1Sizer7.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).EndInit();
     this.c1Sizer6.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Drawing.Drawing2D.Blend blend1 = new System.Drawing.Drawing2D.Blend();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExcerciseForm));
     this.cmbLabel            = new System.Windows.Forms.ComboBox();
     this.cmbLocation         = new System.Windows.Forms.ComboBox();
     this.lblLabel            = new System.Windows.Forms.Label();
     this.lblLocation         = new System.Windows.Forms.Label();
     this.lblSubject          = new System.Windows.Forms.Label();
     this.pnTime              = new System.Windows.Forms.Panel();
     this.tpEnd               = new System.Windows.Forms.DateTimePicker();
     this.tpStart             = new System.Windows.Forms.DateTimePicker();
     this.dpEnd               = new System.Windows.Forms.DateTimePicker();
     this.dpStart             = new System.Windows.Forms.DateTimePicker();
     this.lblEnd              = new System.Windows.Forms.Label();
     this.lblStart            = new System.Windows.Forms.Label();
     this.pnProps             = new System.Windows.Forms.Panel();
     this.txtBody             = new System.Windows.Forms.RichTextBox();
     this.toolStrip1          = new System.Windows.Forms.ToolStrip();
     this.btnSave             = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.btnDelete           = new System.Windows.Forms.ToolStripButton();
     this.pnSubject           = new System.Windows.Forms.Panel();
     this.cmbExcercise        = new System.Windows.Forms.ComboBox();
     this.label2              = new System.Windows.Forms.Label();
     this.label1              = new System.Windows.Forms.Label();
     this.cmbCategory         = new System.Windows.Forms.ComboBox();
     this.cmbInstructor       = new System.Windows.Forms.ComboBox();
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.c1Sizer1            = new C1.Win.C1Sizer.C1Sizer();
     this.pnTime.SuspendLayout();
     this.pnProps.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.pnSubject.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).BeginInit();
     this.c1Sizer1.SuspendLayout();
     this.SuspendLayout();
     //
     // cmbLabel
     //
     this.cmbLabel.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbLabel.FormattingEnabled = true;
     this.cmbLabel.Location          = new System.Drawing.Point(73, 145);
     this.cmbLabel.Name     = "cmbLabel";
     this.cmbLabel.Size     = new System.Drawing.Size(244, 21);
     this.cmbLabel.TabIndex = 9;
     //
     // cmbLocation
     //
     this.cmbLocation.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbLocation.FormattingEnabled = true;
     this.cmbLocation.Location          = new System.Drawing.Point(73, 42);
     this.cmbLocation.Name     = "cmbLocation";
     this.cmbLocation.Size     = new System.Drawing.Size(244, 21);
     this.cmbLocation.TabIndex = 3;
     //
     // lblLabel
     //
     this.lblLabel.AutoSize = true;
     this.lblLabel.Location = new System.Drawing.Point(8, 147);
     this.lblLabel.Name     = "lblLabel";
     this.lblLabel.Size     = new System.Drawing.Size(36, 13);
     this.lblLabel.TabIndex = 8;
     this.lblLabel.Text     = "Le&vel:";
     //
     // lblLocation
     //
     this.lblLocation.AutoSize = true;
     this.lblLocation.Location = new System.Drawing.Point(8, 44);
     this.lblLocation.Name     = "lblLocation";
     this.lblLocation.Size     = new System.Drawing.Size(51, 13);
     this.lblLocation.TabIndex = 2;
     this.lblLocation.Text     = "&Location:";
     //
     // lblSubject
     //
     this.lblSubject.AutoSize = true;
     this.lblSubject.Location = new System.Drawing.Point(8, 10);
     this.lblSubject.Name     = "lblSubject";
     this.lblSubject.Size     = new System.Drawing.Size(51, 13);
     this.lblSubject.TabIndex = 0;
     this.lblSubject.Text     = "&Exercise:";
     //
     // pnTime
     //
     this.pnTime.BackColor = System.Drawing.Color.Transparent;
     this.pnTime.Controls.Add(this.tpEnd);
     this.pnTime.Controls.Add(this.tpStart);
     this.pnTime.Controls.Add(this.dpEnd);
     this.pnTime.Controls.Add(this.dpStart);
     this.pnTime.Controls.Add(this.lblEnd);
     this.pnTime.Controls.Add(this.lblStart);
     this.pnTime.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnTime.Location = new System.Drawing.Point(0, 0);
     this.pnTime.Name     = "pnTime";
     this.pnTime.Size     = new System.Drawing.Size(326, 62);
     this.pnTime.TabIndex = 2;
     //
     // tpEnd
     //
     this.tpEnd.CustomFormat = "hh:mm";
     this.tpEnd.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.tpEnd.Location     = new System.Drawing.Point(229, 36);
     this.tpEnd.Name         = "tpEnd";
     this.tpEnd.ShowUpDown   = true;
     this.tpEnd.Size         = new System.Drawing.Size(88, 21);
     this.tpEnd.TabIndex     = 5;
     //
     // tpStart
     //
     this.tpStart.CustomFormat = "hh:mm";
     this.tpStart.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.tpStart.Location     = new System.Drawing.Point(229, 9);
     this.tpStart.Name         = "tpStart";
     this.tpStart.ShowUpDown   = true;
     this.tpStart.Size         = new System.Drawing.Size(88, 21);
     this.tpStart.TabIndex     = 2;
     //
     // dpEnd
     //
     this.dpEnd.CustomFormat = "MM/dd/yyy";
     this.dpEnd.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dpEnd.Location     = new System.Drawing.Point(72, 36);
     this.dpEnd.Name         = "dpEnd";
     this.dpEnd.Size         = new System.Drawing.Size(151, 21);
     this.dpEnd.TabIndex     = 4;
     //
     // dpStart
     //
     this.dpStart.CustomFormat = "MM/dd/yyy";
     this.dpStart.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dpStart.Location     = new System.Drawing.Point(72, 9);
     this.dpStart.Name         = "dpStart";
     this.dpStart.Size         = new System.Drawing.Size(151, 21);
     this.dpStart.TabIndex     = 1;
     //
     // lblEnd
     //
     this.lblEnd.AutoSize = true;
     this.lblEnd.Location = new System.Drawing.Point(8, 40);
     this.lblEnd.Name     = "lblEnd";
     this.lblEnd.Size     = new System.Drawing.Size(52, 13);
     this.lblEnd.TabIndex = 3;
     this.lblEnd.Text     = "En&d time:";
     //
     // lblStart
     //
     this.lblStart.AutoSize = true;
     this.lblStart.Location = new System.Drawing.Point(8, 13);
     this.lblStart.Name     = "lblStart";
     this.lblStart.Size     = new System.Drawing.Size(58, 13);
     this.lblStart.TabIndex = 0;
     this.lblStart.Text     = "Start &time:";
     //
     // pnProps
     //
     this.pnProps.BackColor = System.Drawing.Color.Transparent;
     this.pnProps.Controls.Add(this.txtBody);
     this.pnProps.Controls.Add(this.pnTime);
     this.pnProps.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnProps.Location = new System.Drawing.Point(0, 176);
     this.pnProps.Name     = "pnProps";
     this.pnProps.Size     = new System.Drawing.Size(326, 149);
     this.pnProps.TabIndex = 4;
     //
     // txtBody
     //
     this.txtBody.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.txtBody.Location = new System.Drawing.Point(0, 62);
     this.txtBody.Name     = "txtBody";
     this.txtBody.Size     = new System.Drawing.Size(326, 87);
     this.txtBody.TabIndex = 3;
     this.txtBody.Text     = "";
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.btnSave,
         this.toolStripSeparator1,
         this.btnDelete
     });
     this.toolStrip1.Location   = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name       = "toolStrip1";
     this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
     this.toolStrip1.Size       = new System.Drawing.Size(326, 25);
     this.toolStrip1.TabIndex   = 0;
     this.toolStrip1.Text       = "toolStrip1";
     //
     // btnSave
     //
     this.btnSave.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSave.Name   = "btnSave";
     this.btnSave.Size   = new System.Drawing.Size(101, 22);
     this.btnSave.Text   = "&Save and Close";
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // btnDelete
     //
     this.btnDelete.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnDelete.Name   = "btnDelete";
     this.btnDelete.Size   = new System.Drawing.Size(49, 22);
     this.btnDelete.Text   = "Delete";
     this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
     //
     // pnSubject
     //
     this.pnSubject.BackColor = System.Drawing.Color.Transparent;
     this.pnSubject.Controls.Add(this.cmbExcercise);
     this.pnSubject.Controls.Add(this.label2);
     this.pnSubject.Controls.Add(this.label1);
     this.pnSubject.Controls.Add(this.cmbCategory);
     this.pnSubject.Controls.Add(this.cmbInstructor);
     this.pnSubject.Controls.Add(this.cmbLabel);
     this.pnSubject.Controls.Add(this.groupBox1);
     this.pnSubject.Controls.Add(this.lblSubject);
     this.pnSubject.Controls.Add(this.lblLocation);
     this.pnSubject.Controls.Add(this.cmbLocation);
     this.pnSubject.Controls.Add(this.lblLabel);
     this.pnSubject.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnSubject.Location = new System.Drawing.Point(0, 0);
     this.pnSubject.Name     = "pnSubject";
     this.pnSubject.Size     = new System.Drawing.Size(326, 176);
     this.pnSubject.TabIndex = 1;
     //
     // cmbExcercise
     //
     this.cmbExcercise.FormattingEnabled = true;
     this.cmbExcercise.Items.AddRange(new object[] {
         "LA Spin ",
         "Aerobics",
         "Yoga ",
         "Body Pump",
         "Pilates",
         "Abs and Back Workout",
         "Combat Kickboxing",
         "Kids Parties",
         "Swimming Lessons",
         "Dance Cardio Funk",
         "Swim Time",
         "Yoga Kundalini",
         "Swimming",
         "Step",
         "Aerobics",
         "Yoga Fusion",
         "LA Water Aerobics",
         "Dance Salsa",
         "Tai Chi",
         "Combat Fight",
         "Body Combat",
         "Circuit",
         "Synergize",
         "LA Core Stability",
         "Combat Tae Kwon Do"
     });
     this.cmbExcercise.Location = new System.Drawing.Point(73, 7);
     this.cmbExcercise.Name     = "cmbExcercise";
     this.cmbExcercise.Size     = new System.Drawing.Size(244, 21);
     this.cmbExcercise.TabIndex = 1;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(8, 113);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(56, 13);
     this.label2.TabIndex = 6;
     this.label2.Text     = "&Category:";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(8, 78);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(59, 13);
     this.label1.TabIndex = 4;
     this.label1.Text     = "&Instructor:";
     //
     // cmbCategory
     //
     this.cmbCategory.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbCategory.FormattingEnabled = true;
     this.cmbCategory.Location          = new System.Drawing.Point(73, 110);
     this.cmbCategory.Name     = "cmbCategory";
     this.cmbCategory.Size     = new System.Drawing.Size(244, 21);
     this.cmbCategory.TabIndex = 7;
     //
     // cmbInstructor
     //
     this.cmbInstructor.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbInstructor.FormattingEnabled = true;
     this.cmbInstructor.Location          = new System.Drawing.Point(73, 76);
     this.cmbInstructor.Name     = "cmbInstructor";
     this.cmbInstructor.Size     = new System.Drawing.Size(244, 21);
     this.cmbInstructor.TabIndex = 5;
     //
     // groupBox1
     //
     this.groupBox1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.groupBox1.Location = new System.Drawing.Point(0, 174);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(326, 2);
     this.groupBox1.TabIndex = 13;
     this.groupBox1.TabStop  = false;
     //
     // c1Sizer1
     //
     this.c1Sizer1.BackColor = System.Drawing.Color.Empty;
     this.c1Sizer1.Controls.Add(this.pnProps);
     this.c1Sizer1.Controls.Add(this.pnSubject);
     this.c1Sizer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.c1Sizer1.Gradient.BackColor2 = System.Drawing.SystemColors.ControlDark;
     blend1.Factors = new float[] {
         0F,
         1F
     };
     blend1.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer1.Gradient.Blend = blend1;
     this.c1Sizer1.GridDefinition = "97.5384615384615:False:False;\t97.5460122699387:False:False;";
     this.c1Sizer1.Location       = new System.Drawing.Point(0, 25);
     this.c1Sizer1.Name           = "c1Sizer1";
     this.c1Sizer1.Size           = new System.Drawing.Size(326, 325);
     this.c1Sizer1.TabIndex       = 14;
     this.c1Sizer1.Text           = "c1Sizer1";
     //
     // ExcerciseForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.AutoSize            = true;
     this.ClientSize          = new System.Drawing.Size(326, 350);
     this.Controls.Add(this.c1Sizer1);
     this.Controls.Add(this.toolStrip1);
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.MinimumSize     = new System.Drawing.Size(241, 245);
     this.Name            = "ExcerciseForm";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Exercise";
     this.pnTime.ResumeLayout(false);
     this.pnTime.PerformLayout();
     this.pnProps.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.pnSubject.ResumeLayout(false);
     this.pnSubject.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).EndInit();
     this.c1Sizer1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 12
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Rectangle rec = e.ClipRectangle;

            rec.Width = (int)(rec.Width * ((double)Value / Maximum)) - 4;

            if (ProgressBarRenderer.IsSupported)
            {
                ProgressBarRenderer.DrawHorizontalBar(e.Graphics, e.ClipRectangle);
            }
            else
            {
                e.Graphics.DrawRectangle(Pens.Gray, 0, 0, this.Width, this.Height);
            }

            rec.Height = rec.Height - 4;

            using (System.Drawing.Drawing2D.LinearGradientBrush l =
                       new System.Drawing.Drawing2D.LinearGradientBrush(e.ClipRectangle, Color.Red, Color.Green, 0F))
            {
                System.Drawing.Drawing2D.ColorBlend lb = new System.Drawing.Drawing2D.ColorBlend();     //建立顏色漸層
                lb.Colors             = new Color[] { Color1, Color2, Color3, Color4 };                 //設定漸層顏色
                lb.Positions          = new float[] { 0, 0.25F, 0.45F, 1.0F };                          //設定漸層位置
                l.InterpolationColors = lb;

                e.Graphics.FillRectangle(l, 2, 2, rec.Width, rec.Height);                                                                           //將漸層顏色填滿Process Bar
            }

            using (System.Drawing.Drawing2D.LinearGradientBrush l2 =
                       new System.Drawing.Drawing2D.LinearGradientBrush(e.ClipRectangle, Color.FromArgb(147, 255, 255, 255), Color.FromArgb(0, 255, 255, 255), System.Drawing.Drawing2D.LinearGradientMode.Vertical))
            {
                System.Drawing.Drawing2D.ColorBlend lb = new System.Drawing.Drawing2D.ColorBlend();
                lb.Colors = new Color[] { Color.FromArgb(40, 255, 255, 255), Color.FromArgb(147, 255, 255, 255),
                                          Color.FromArgb(40, 255, 255, 255), Color.FromArgb(0, 255, 255, 255) };
                lb.Positions           = new float[] { 0, PositionColor2, PositionColor3, 1.0F };
                l2.InterpolationColors = lb;

                l2.WrapMode = System.Drawing.Drawing2D.WrapMode.Tile;
                e.Graphics.FillRectangle(l2, 2, 2, rec.Width, rec.Height);
            }

            if (this.ShowText)
            {
                using (SolidBrush sb = new SolidBrush(this.ForeColor))
                {
                    SizeF sz = e.Graphics.MeasureString(this.Value.ToString("N0") + " %", this.Font);
                    e.Graphics.DrawString(this.Value.ToString("N0") + " %", this.Font, sb,
                                          new PointF((this.Width - sz.Width) / 2F, (this.Height - sz.Height) / 2F));
                }
            }

            #region 掃描特效
            if (this.ShowOverlay)
            {
                if (Value > 0 && _doMarqueeOverlay == false)
                {
                    StartMarquee();
                }
                if (Value == Maximum - 1)
                {
                    StopMarquee();
                }

                if (_doMarqueeOverlay)
                {
                    float rWidth = _rWidth;

                    if (rec.Width < rWidth)
                    {
                        rWidth = rec.Width;
                    }

                    if (rWidth + _pos > rec.Width)
                    {
                        rWidth = rec.Width - _pos;
                    }

                    using (System.Drawing.Drawing2D.LinearGradientBrush l =
                               new System.Drawing.Drawing2D.LinearGradientBrush(new RectangleF(_pos + 2, 2, _rWidth, rec.Height),
                                                                                Color.FromArgb(127, 255, 255, 255), Color.FromArgb(0, 255, 255, 255), System.Drawing.Drawing2D.LinearGradientMode.Horizontal))
                    {
                        System.Drawing.Drawing2D.Blend lb = new System.Drawing.Drawing2D.Blend();
                        lb.Factors   = new float[] { 1, 0, 1 };
                        lb.Positions = new float[] { 0, 0.5F, 1.0F };
                        l.Blend      = lb;

                        //l.TranslateTransform(_pos - rWidth, 0);
                        l.WrapMode = System.Drawing.Drawing2D.WrapMode.TileFlipXY;

                        e.Graphics.FillRectangle(l, _pos + 2, 2, rWidth, rec.Height);

                        _pos += _posAdd;
                        if (_pos >= rec.Width)
                        {
                            if (_c < _posDelay)
                            {
                                _pos -= _posAdd;
                                _c++;
                            }
                            else
                            {
                                _pos = -_rWidth - _posDelay;
                                _c   = 0;
                            }
                        }
                    }
                }
            }
            #endregion 掃描特效
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Drawing.Drawing2D.Blend blend5 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend1 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend2 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend3 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend4 = new System.Drawing.Drawing2D.Blend();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SizerNewFeatures));
     this.timer1   = new System.Windows.Forms.Timer(this.components);
     this.c1Sizer1 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer9 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer4 = new C1.Win.C1Sizer.C1Sizer();
     this.button13 = new C1.Win.C1Input.C1Button();
     this.button12 = new C1.Win.C1Input.C1Button();
     this.button11 = new C1.Win.C1Input.C1Button();
     this.button10 = new C1.Win.C1Input.C1Button();
     this.button9  = new C1.Win.C1Input.C1Button();
     this.button8  = new C1.Win.C1Input.C1Button();
     this.c1Sizer6 = new C1.Win.C1Sizer.C1Sizer();
     this.button7  = new C1.Win.C1Input.C1Button();
     this.button6  = new C1.Win.C1Input.C1Button();
     this.button5  = new C1.Win.C1Input.C1Button();
     this.button4  = new C1.Win.C1Input.C1Button();
     this.c1Sizer2 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer3 = new C1.Win.C1Sizer.C1Sizer();
     this.button25 = new C1.Win.C1Input.C1Button();
     this.button24 = new C1.Win.C1Input.C1Button();
     this.button23 = new C1.Win.C1Input.C1Button();
     this.button22 = new C1.Win.C1Input.C1Button();
     this.button3  = new C1.Win.C1Input.C1Button();
     this.button2  = new C1.Win.C1Input.C1Button();
     this.c1Sizer5 = new C1.Win.C1Sizer.C1Sizer();
     this.button21 = new C1.Win.C1Input.C1Button();
     this.button20 = new C1.Win.C1Input.C1Button();
     this.button19 = new C1.Win.C1Input.C1Button();
     this.button18 = new C1.Win.C1Input.C1Button();
     this.button17 = new C1.Win.C1Input.C1Button();
     this.button16 = new C1.Win.C1Input.C1Button();
     this.button15 = new C1.Win.C1Input.C1Button();
     this.button14 = new C1.Win.C1Input.C1Button();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).BeginInit();
     this.c1Sizer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer9)).BeginInit();
     this.c1Sizer9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).BeginInit();
     this.c1Sizer4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).BeginInit();
     this.c1Sizer6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).BeginInit();
     this.c1Sizer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).BeginInit();
     this.c1Sizer3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).BeginInit();
     this.c1Sizer5.SuspendLayout();
     this.SuspendLayout();
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Tick   += new System.EventHandler(this.timer1_Tick);
     //
     // c1Sizer1
     //
     this.c1Sizer1.Controls.Add(this.c1Sizer9);
     this.c1Sizer1.Controls.Add(this.c1Sizer2);
     this.c1Sizer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.c1Sizer1.Gradient.BackColor2 = System.Drawing.Color.Yellow;
     blend5.Factors = new float[] {
         0F,
         1F
     };
     blend5.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer1.Gradient.Blend = blend5;
     this.c1Sizer1.GridDefinition = "60.0896860986547:True:False;39.0134529147982:False:False;\t100:False:False;";
     this.c1Sizer1.Location       = new System.Drawing.Point(0, 0);
     this.c1Sizer1.Name           = "c1Sizer1";
     this.c1Sizer1.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer1.Size           = new System.Drawing.Size(592, 446);
     this.c1Sizer1.TabIndex       = 2;
     this.c1Sizer1.Text           = "c1Sizer1";
     this.c1Sizer1.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer1_SplitterMoved);
     //
     // c1Sizer9
     //
     this.c1Sizer9.Controls.Add(this.c1Sizer4);
     this.c1Sizer9.Controls.Add(this.c1Sizer6);
     this.c1Sizer9.GridDefinition = "100:False:False;\t64.0202702702703:True:False;35.3040540540541:False:False;";
     this.c1Sizer9.Location       = new System.Drawing.Point(0, 272);
     this.c1Sizer9.Name           = "c1Sizer9";
     this.c1Sizer9.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer9.Size           = new System.Drawing.Size(592, 174);
     this.c1Sizer9.TabIndex       = 6;
     this.c1Sizer9.Text           = "c1Sizer9";
     this.c1Sizer9.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer9_SplitterMoved);
     //
     // c1Sizer4
     //
     this.c1Sizer4.BackColor        = System.Drawing.Color.Black;
     this.c1Sizer4.Border.Color     = System.Drawing.Color.SteelBlue;
     this.c1Sizer4.Border.Corners   = new C1.Win.C1Sizer.Corners(20, 20, 0, 0);
     this.c1Sizer4.Border.Thickness = new System.Windows.Forms.Padding(5);
     this.c1Sizer4.Controls.Add(this.button13);
     this.c1Sizer4.Controls.Add(this.button12);
     this.c1Sizer4.Controls.Add(this.button11);
     this.c1Sizer4.Controls.Add(this.button10);
     this.c1Sizer4.Controls.Add(this.button9);
     this.c1Sizer4.Controls.Add(this.button8);
     this.c1Sizer4.Gradient.BackColor2 = System.Drawing.Color.LimeGreen;
     blend1.Factors = new float[] {
         0F,
         1F
     };
     blend1.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer4.Gradient.Blend = blend1;
     this.c1Sizer4.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer4.GridDefinition = "13.7931034482759:False:False;35.0574712643678:False:False;13.7931034482759:False:" +
                                    "True;15.5172413793103:False:True;\t28.4960422163588:False:True;19.5250659630607:F" +
                                    "alse:False;43.0079155672823:False:True;";
     this.c1Sizer4.Location = new System.Drawing.Point(0, 0);
     this.c1Sizer4.Name     = "c1Sizer4";
     this.c1Sizer4.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer4.Size     = new System.Drawing.Size(379, 174);
     this.c1Sizer4.TabIndex = 2;
     this.c1Sizer4.Text     = "c1Sizer4";
     //
     // button13
     //
     this.button13.Location = new System.Drawing.Point(13, 13);
     this.button13.Name     = "button13";
     this.button13.Size     = new System.Drawing.Size(108, 24);
     this.button13.TabIndex = 5;
     this.button13.Text     = "Fixed Width";
     this.button13.UseVisualStyleBackColor = true;
     //
     // button12
     //
     this.button12.Location = new System.Drawing.Point(13, 41);
     this.button12.Name     = "button12";
     this.button12.Size     = new System.Drawing.Size(353, 61);
     this.button12.TabIndex = 4;
     this.button12.Text     = "Free";
     this.button12.UseVisualStyleBackColor = true;
     //
     // button11
     //
     this.button11.Location = new System.Drawing.Point(13, 106);
     this.button11.Name     = "button11";
     this.button11.Size     = new System.Drawing.Size(186, 55);
     this.button11.TabIndex = 3;
     this.button11.Text     = "Fixed Height";
     this.button11.UseVisualStyleBackColor = true;
     //
     // button10
     //
     this.button10.Location = new System.Drawing.Point(125, 13);
     this.button10.Name     = "button10";
     this.button10.Size     = new System.Drawing.Size(241, 24);
     this.button10.TabIndex = 2;
     this.button10.Text     = "Free";
     this.button10.UseVisualStyleBackColor = true;
     //
     // button9
     //
     this.button9.Location = new System.Drawing.Point(203, 106);
     this.button9.Name     = "button9";
     this.button9.Size     = new System.Drawing.Size(163, 24);
     this.button9.TabIndex = 1;
     this.button9.Text     = "Fixed Width && Height";
     this.button9.UseVisualStyleBackColor = true;
     //
     // button8
     //
     this.button8.Location = new System.Drawing.Point(203, 134);
     this.button8.Name     = "button8";
     this.button8.Size     = new System.Drawing.Size(163, 27);
     this.button8.TabIndex = 0;
     this.button8.Text     = "Fixed Width && Height";
     this.button8.UseVisualStyleBackColor = true;
     //
     // c1Sizer6
     //
     this.c1Sizer6.BackColor        = System.Drawing.Color.LavenderBlush;
     this.c1Sizer6.Border.Color     = System.Drawing.Color.SteelBlue;
     this.c1Sizer6.Border.Corners   = new C1.Win.C1Sizer.Corners(20, 20, 0, 0);
     this.c1Sizer6.Border.Thickness = new System.Windows.Forms.Padding(5);
     this.c1Sizer6.Controls.Add(this.button7);
     this.c1Sizer6.Controls.Add(this.button6);
     this.c1Sizer6.Controls.Add(this.button5);
     this.c1Sizer6.Controls.Add(this.button4);
     this.c1Sizer6.Gradient.BackColor2 = System.Drawing.Color.Orchid;
     blend2.Factors = new float[] {
         1F,
         0.4345982F,
         0.1888756F,
         0.082085F,
         0.03567399F,
         0.01550385F,
         0.006737947F
     };
     blend2.Positions = new float[] {
         0F,
         0.1666667F,
         0.3333333F,
         0.5F,
         0.6666667F,
         0.8333333F,
         1F
     };
     this.c1Sizer6.Gradient.Blend  = blend2;
     this.c1Sizer6.Gradient.Center = new System.Drawing.Point(51, 55);
     this.c1Sizer6.Gradient.Mode   = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer6.GridDefinition  = "12.0689655172414:False:True;46.551724137931:False:False;21.8390804597701:False:Tr" +
                                     "ue;\t49.7607655502392:False:True;35.8851674641148:False:False;";
     this.c1Sizer6.Location = new System.Drawing.Point(383, 0);
     this.c1Sizer6.Name     = "c1Sizer6";
     this.c1Sizer6.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer6.Size     = new System.Drawing.Size(209, 174);
     this.c1Sizer6.TabIndex = 4;
     this.c1Sizer6.Text     = "c1Sizer6";
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(13, 13);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(183, 21);
     this.button7.TabIndex = 3;
     this.button7.Text     = "Fixed Height";
     this.button7.UseVisualStyleBackColor = true;
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(121, 38);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(75, 81);
     this.button6.TabIndex = 2;
     this.button6.Text     = "Free";
     this.button6.UseVisualStyleBackColor = true;
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(13, 123);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(183, 38);
     this.button5.TabIndex = 1;
     this.button5.Text     = "Fixed Height";
     this.button5.UseVisualStyleBackColor = true;
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(13, 38);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(104, 81);
     this.button4.TabIndex = 0;
     this.button4.Text     = "Fixed Width";
     this.button4.UseVisualStyleBackColor = true;
     //
     // c1Sizer2
     //
     this.c1Sizer2.Controls.Add(this.c1Sizer3);
     this.c1Sizer2.Controls.Add(this.c1Sizer5);
     this.c1Sizer2.GridDefinition = "100:False:False;\t28.8851351351351:True:False;70.4391891891892:False:False;";
     this.c1Sizer2.Location       = new System.Drawing.Point(0, 0);
     this.c1Sizer2.Name           = "c1Sizer2";
     this.c1Sizer2.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer2.Size           = new System.Drawing.Size(592, 268);
     this.c1Sizer2.TabIndex       = 5;
     this.c1Sizer2.Text           = "c1Sizer2";
     this.c1Sizer2.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer2_SplitterMoved);
     //
     // c1Sizer3
     //
     this.c1Sizer3.BackColor        = System.Drawing.Color.OrangeRed;
     this.c1Sizer3.Border.Color     = System.Drawing.Color.SteelBlue;
     this.c1Sizer3.Border.Corners   = new C1.Win.C1Sizer.Corners(10, 10, 10, 10);
     this.c1Sizer3.Border.Thickness = new System.Windows.Forms.Padding(5);
     this.c1Sizer3.Controls.Add(this.button25);
     this.c1Sizer3.Controls.Add(this.button24);
     this.c1Sizer3.Controls.Add(this.button23);
     this.c1Sizer3.Controls.Add(this.button22);
     this.c1Sizer3.Controls.Add(this.button3);
     this.c1Sizer3.Controls.Add(this.button2);
     this.c1Sizer3.Gradient.BackColor2 = System.Drawing.Color.Yellow;
     blend3.Factors = new float[] {
         0F,
         1F
     };
     blend3.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer3.Gradient.Blend = blend3;
     this.c1Sizer3.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.DiagonalUp;
     this.c1Sizer3.GridDefinition = "39.5522388059701:False:True;6.71641791044776:False:False;8.2089552238806:False:Tr" +
                                    "ue;13.4328358208955:False:True;16.4179104477612:False:False;\t35.672514619883:Fal" +
                                    "se:False;46.7836257309942:False:True;";
     this.c1Sizer3.Location = new System.Drawing.Point(0, 0);
     this.c1Sizer3.Name     = "c1Sizer3";
     this.c1Sizer3.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer3.Size     = new System.Drawing.Size(171, 268);
     this.c1Sizer3.TabIndex = 1;
     this.c1Sizer3.Text     = "c1Sizer3";
     //
     // button25
     //
     this.button25.Location = new System.Drawing.Point(13, 171);
     this.button25.Name     = "button25";
     this.button25.Size     = new System.Drawing.Size(61, 36);
     this.button25.TabIndex = 10;
     this.button25.Text     = "Fixed Height";
     this.button25.UseVisualStyleBackColor = true;
     //
     // button24
     //
     this.button24.Location = new System.Drawing.Point(78, 145);
     this.button24.Name     = "button24";
     this.button24.Size     = new System.Drawing.Size(80, 62);
     this.button24.TabIndex = 9;
     this.button24.Text     = "Fixed Width && Height";
     this.button24.UseVisualStyleBackColor = true;
     //
     // button23
     //
     this.button23.Location = new System.Drawing.Point(13, 211);
     this.button23.Name     = "button23";
     this.button23.Size     = new System.Drawing.Size(145, 44);
     this.button23.TabIndex = 8;
     this.button23.Text     = "Free";
     this.button23.UseVisualStyleBackColor = true;
     //
     // button22
     //
     this.button22.Location = new System.Drawing.Point(13, 123);
     this.button22.Name     = "button22";
     this.button22.Size     = new System.Drawing.Size(61, 44);
     this.button22.TabIndex = 7;
     this.button22.Text     = "Free";
     this.button22.UseVisualStyleBackColor = true;
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(78, 13);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(80, 128);
     this.button3.TabIndex = 6;
     this.button3.Text     = "Fixed Width";
     this.button3.UseVisualStyleBackColor = true;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(13, 13);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(61, 106);
     this.button2.TabIndex = 5;
     this.button2.Text     = "Fixed Height";
     this.button2.UseVisualStyleBackColor = true;
     //
     // c1Sizer5
     //
     this.c1Sizer5.BackColor        = System.Drawing.Color.LightCyan;
     this.c1Sizer5.Border.Color     = System.Drawing.Color.SteelBlue;
     this.c1Sizer5.Border.Corners   = new C1.Win.C1Sizer.Corners(0, 30, 30, 0);
     this.c1Sizer5.Border.Thickness = new System.Windows.Forms.Padding(6);
     this.c1Sizer5.Controls.Add(this.button21);
     this.c1Sizer5.Controls.Add(this.button20);
     this.c1Sizer5.Controls.Add(this.button19);
     this.c1Sizer5.Controls.Add(this.button18);
     this.c1Sizer5.Controls.Add(this.button17);
     this.c1Sizer5.Controls.Add(this.button16);
     this.c1Sizer5.Controls.Add(this.button15);
     this.c1Sizer5.Controls.Add(this.button14);
     this.c1Sizer5.Gradient.BackColor2 = System.Drawing.Color.DeepSkyBlue;
     blend4.Factors = new float[] {
         0F,
         0.75F,
         0.25F,
         0F,
         0.59F,
         1F
     };
     blend4.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer5.Gradient.Blend = blend4;
     this.c1Sizer5.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.DiagonalDown;
     this.c1Sizer5.GridDefinition = resources.GetString("c1Sizer5.GridDefinition");
     this.c1Sizer5.Location       = new System.Drawing.Point(175, 0);
     this.c1Sizer5.Name           = "c1Sizer5";
     this.c1Sizer5.Padding        = new System.Windows.Forms.Padding(8);
     this.c1Sizer5.Size           = new System.Drawing.Size(417, 268);
     this.c1Sizer5.TabIndex       = 3;
     this.c1Sizer5.Text           = "c1Sizer5";
     //
     // button21
     //
     this.button21.Location = new System.Drawing.Point(330, 214);
     this.button21.Name     = "button21";
     this.button21.Size     = new System.Drawing.Size(73, 40);
     this.button21.TabIndex = 7;
     this.button21.Text     = "Fixed Width && Height";
     this.button21.UseVisualStyleBackColor = true;
     //
     // button20
     //
     this.button20.Location = new System.Drawing.Point(241, 214);
     this.button20.Name     = "button20";
     this.button20.Size     = new System.Drawing.Size(85, 40);
     this.button20.TabIndex = 6;
     this.button20.Text     = "Fixed Width && Height";
     this.button20.UseVisualStyleBackColor = true;
     //
     // button19
     //
     this.button19.Location = new System.Drawing.Point(96, 214);
     this.button19.Name     = "button19";
     this.button19.Size     = new System.Drawing.Size(141, 40);
     this.button19.TabIndex = 5;
     this.button19.Text     = "Fixed Height";
     this.button19.UseVisualStyleBackColor = true;
     //
     // button18
     //
     this.button18.Location = new System.Drawing.Point(96, 184);
     this.button18.Name     = "button18";
     this.button18.Size     = new System.Drawing.Size(307, 26);
     this.button18.TabIndex = 4;
     this.button18.Text     = "Fixed Height";
     this.button18.UseVisualStyleBackColor = true;
     //
     // button17
     //
     this.button17.Location = new System.Drawing.Point(96, 45);
     this.button17.Name     = "button17";
     this.button17.Size     = new System.Drawing.Size(307, 135);
     this.button17.TabIndex = 3;
     this.button17.Text     = "Free";
     this.button17.UseVisualStyleBackColor = true;
     //
     // button16
     //
     this.button16.Location = new System.Drawing.Point(14, 184);
     this.button16.Name     = "button16";
     this.button16.Size     = new System.Drawing.Size(78, 70);
     this.button16.TabIndex = 2;
     this.button16.Text     = "Fixed Width && Height";
     this.button16.UseVisualStyleBackColor = true;
     //
     // button15
     //
     this.button15.Location = new System.Drawing.Point(14, 45);
     this.button15.Name     = "button15";
     this.button15.Size     = new System.Drawing.Size(78, 135);
     this.button15.TabIndex = 1;
     this.button15.Text     = "Fixed Width";
     this.button15.UseVisualStyleBackColor = true;
     //
     // button14
     //
     this.button14.Location = new System.Drawing.Point(14, 14);
     this.button14.Name     = "button14";
     this.button14.Size     = new System.Drawing.Size(389, 27);
     this.button14.TabIndex = 0;
     this.button14.Text     = "Fixed Height";
     this.button14.UseVisualStyleBackColor = true;
     //
     // SizerNewFeatures
     //
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.None;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(592, 446);
     this.Controls.Add(this.c1Sizer1);
     this.Name  = "SizerNewFeatures";
     this.Load += new System.EventHandler(this.SizerNewFeatures_Load);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).EndInit();
     this.c1Sizer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer9)).EndInit();
     this.c1Sizer9.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).EndInit();
     this.c1Sizer4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).EndInit();
     this.c1Sizer6.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).EndInit();
     this.c1Sizer2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).EndInit();
     this.c1Sizer3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).EndInit();
     this.c1Sizer5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Drawing.Drawing2D.Blend blend16 = new System.Drawing.Drawing2D.Blend();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     System.Drawing.Drawing2D.Blend blend1  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend2  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend3  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend4  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend5  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend6  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend7  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend8  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend9  = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend10 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend11 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend12 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend13 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend14 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend15 = new System.Drawing.Drawing2D.Blend();
     this.c1Sizer1  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer20 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer18 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer17 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer16 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer10 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer14 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer8  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer13 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer6  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer11 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer5  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer4  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer2  = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer12 = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer7  = new C1.Win.C1Sizer.C1Sizer();
     this.button1   = new System.Windows.Forms.Button();
     this.timer1    = new System.Windows.Forms.Timer(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).BeginInit();
     this.c1Sizer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer20)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer18)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer17)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer16)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer10)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer14)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer13)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer12)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer7)).BeginInit();
     this.SuspendLayout();
     //
     // c1Sizer1
     //
     this.c1Sizer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.c1Sizer1.Border.Color     = System.Drawing.Color.White;
     this.c1Sizer1.Border.Corners   = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(40, 0, 0, 20)));
     this.c1Sizer1.Border.Thickness = new System.Windows.Forms.Padding(12, 12, 8, 8);
     this.c1Sizer1.Controls.Add(this.c1Sizer20);
     this.c1Sizer1.Controls.Add(this.c1Sizer18);
     this.c1Sizer1.Controls.Add(this.c1Sizer17);
     this.c1Sizer1.Controls.Add(this.c1Sizer16);
     this.c1Sizer1.Controls.Add(this.c1Sizer10);
     this.c1Sizer1.Controls.Add(this.c1Sizer14);
     this.c1Sizer1.Controls.Add(this.c1Sizer8);
     this.c1Sizer1.Controls.Add(this.c1Sizer13);
     this.c1Sizer1.Controls.Add(this.c1Sizer6);
     this.c1Sizer1.Controls.Add(this.c1Sizer11);
     this.c1Sizer1.Controls.Add(this.c1Sizer5);
     this.c1Sizer1.Controls.Add(this.c1Sizer4);
     this.c1Sizer1.Controls.Add(this.c1Sizer2);
     this.c1Sizer1.Controls.Add(this.c1Sizer12);
     this.c1Sizer1.Controls.Add(this.c1Sizer7);
     this.c1Sizer1.Controls.Add(this.button1);
     this.c1Sizer1.Gradient.BackColor2 = System.Drawing.Color.Green;
     blend16.Factors = new float[] {
         0F,
         1F
     };
     blend16.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer1.Gradient.Blend  = blend16;
     this.c1Sizer1.Gradient.Center = new System.Drawing.Point(100, 0);
     this.c1Sizer1.Gradient.Mode   = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer1.GridDefinition  = resources.GetString("c1Sizer1.GridDefinition");
     this.c1Sizer1.Location        = new System.Drawing.Point(12, 12);
     this.c1Sizer1.Name            = "c1Sizer1";
     this.c1Sizer1.Padding         = new System.Windows.Forms.Padding(12);
     this.c1Sizer1.Size            = new System.Drawing.Size(663, 439);
     this.c1Sizer1.TabIndex        = 0;
     this.c1Sizer1.Text            = "c1Sizer1";
     //
     // c1Sizer20
     //
     this.c1Sizer20.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(80, 80, 80, 80)));
     this.c1Sizer20.Gradient.BackColor2 = System.Drawing.Color.Red;
     blend1.Factors = new float[] {
         0F,
         1F
     };
     blend1.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer20.Gradient.Blend  = blend1;
     this.c1Sizer20.Gradient.Center = new System.Drawing.Point(100, 100);
     this.c1Sizer20.Gradient.Mode   = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer20.GridDefinition  = "91.5789473684211:False:False;\t93.4426229508197:False:False;";
     this.c1Sizer20.Location        = new System.Drawing.Point(396, 24);
     this.c1Sizer20.Name            = "c1Sizer20";
     this.c1Sizer20.Size            = new System.Drawing.Size(122, 95);
     this.c1Sizer20.TabIndex        = 7;
     this.c1Sizer20.Text            = "c1Sizer17";
     //
     // c1Sizer18
     //
     this.c1Sizer18.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(80, 80, 80, 80)));
     this.c1Sizer18.Gradient.BackColor2 = System.Drawing.Color.Red;
     blend2.Factors = new float[] {
         0F,
         1F
     };
     blend2.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer18.Gradient.Blend  = blend2;
     this.c1Sizer18.Gradient.Center = new System.Drawing.Point(0, 0);
     this.c1Sizer18.Gradient.Mode   = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer18.GridDefinition  = "91.5789473684211:False:False;\t93.2773109243697:False:False;";
     this.c1Sizer18.Location        = new System.Drawing.Point(273, 24);
     this.c1Sizer18.Name            = "c1Sizer18";
     this.c1Sizer18.Size            = new System.Drawing.Size(119, 95);
     this.c1Sizer18.TabIndex        = 7;
     this.c1Sizer18.Text            = "c1Sizer17";
     //
     // c1Sizer17
     //
     this.c1Sizer17.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(80, 80, 80, 80)));
     this.c1Sizer17.Gradient.BackColor2 = System.Drawing.Color.Red;
     blend3.Factors = new float[] {
         0F,
         1F
     };
     blend3.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer17.Gradient.Blend  = blend3;
     this.c1Sizer17.Gradient.Center = new System.Drawing.Point(0, 100);
     this.c1Sizer17.Gradient.Mode   = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer17.GridDefinition  = "91.5789473684211:False:False;\t93.3333333333333:False:False;";
     this.c1Sizer17.Location        = new System.Drawing.Point(149, 24);
     this.c1Sizer17.Name            = "c1Sizer17";
     this.c1Sizer17.Size            = new System.Drawing.Size(120, 95);
     this.c1Sizer17.TabIndex        = 7;
     this.c1Sizer17.Text            = "c1Sizer17";
     //
     // c1Sizer16
     //
     this.c1Sizer16.BackColor           = System.Drawing.Color.Silver;
     this.c1Sizer16.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 0, 60)));
     this.c1Sizer16.Gradient.BackColor2 = System.Drawing.Color.DarkGray;
     blend4.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend4.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer16.Gradient.Blend = blend4;
     this.c1Sizer16.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer16.GridDefinition = "91.8367346938775:False:False;\t93.4426229508197:False:False;";
     this.c1Sizer16.Location       = new System.Drawing.Point(396, 321);
     this.c1Sizer16.Name           = "c1Sizer16";
     this.c1Sizer16.Size           = new System.Drawing.Size(122, 98);
     this.c1Sizer16.TabIndex       = 6;
     this.c1Sizer16.Text           = "c1Sizer5";
     this.c1Sizer16.MouseEnter    += new System.EventHandler(this.c1Sizer11_MouseEnter);
     this.c1Sizer16.MouseLeave    += new System.EventHandler(this.c1Sizer11_MouseLeave);
     //
     // c1Sizer10
     //
     this.c1Sizer10.BackColor           = System.Drawing.Color.SteelBlue;
     this.c1Sizer10.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 60, 0, 0)));
     this.c1Sizer10.Gradient.BackColor2 = System.Drawing.Color.LightSteelBlue;
     blend5.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend5.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer10.Gradient.Blend = blend5;
     this.c1Sizer10.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer10.GridDefinition = "91.4893617021277:False:False;\t93.4426229508197:False:False;";
     this.c1Sizer10.Location       = new System.Drawing.Point(396, 223);
     this.c1Sizer10.Name           = "c1Sizer10";
     this.c1Sizer10.Size           = new System.Drawing.Size(122, 94);
     this.c1Sizer10.TabIndex       = 6;
     this.c1Sizer10.Text           = "c1Sizer5";
     this.c1Sizer10.MouseEnter    += new System.EventHandler(this.c1Sizer5_MouseEnter);
     this.c1Sizer10.MouseLeave    += new System.EventHandler(this.c1Sizer5_MouseLeave);
     //
     // c1Sizer14
     //
     this.c1Sizer14.BackColor           = System.Drawing.Color.Silver;
     this.c1Sizer14.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 0, 0)));
     this.c1Sizer14.Gradient.BackColor2 = System.Drawing.Color.DarkGray;
     blend6.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend6.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer14.Gradient.Blend = blend6;
     this.c1Sizer14.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer14.GridDefinition = "91.8367346938775:False:False;\t93.2773109243697:False:False;";
     this.c1Sizer14.Location       = new System.Drawing.Point(273, 321);
     this.c1Sizer14.Name           = "c1Sizer14";
     this.c1Sizer14.Size           = new System.Drawing.Size(119, 98);
     this.c1Sizer14.TabIndex       = 6;
     this.c1Sizer14.Text           = "c1Sizer5";
     this.c1Sizer14.MouseEnter    += new System.EventHandler(this.c1Sizer11_MouseEnter);
     this.c1Sizer14.MouseLeave    += new System.EventHandler(this.c1Sizer11_MouseLeave);
     //
     // c1Sizer8
     //
     this.c1Sizer8.BackColor           = System.Drawing.Color.SteelBlue;
     this.c1Sizer8.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 0, 0)));
     this.c1Sizer8.Gradient.BackColor2 = System.Drawing.Color.LightSteelBlue;
     blend7.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend7.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer8.Gradient.Blend = blend7;
     this.c1Sizer8.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer8.GridDefinition = "91.4893617021277:False:False;\t93.2773109243697:False:False;";
     this.c1Sizer8.Location       = new System.Drawing.Point(273, 223);
     this.c1Sizer8.Name           = "c1Sizer8";
     this.c1Sizer8.Size           = new System.Drawing.Size(119, 94);
     this.c1Sizer8.TabIndex       = 6;
     this.c1Sizer8.Text           = "c1Sizer5";
     this.c1Sizer8.MouseEnter    += new System.EventHandler(this.c1Sizer5_MouseEnter);
     this.c1Sizer8.MouseLeave    += new System.EventHandler(this.c1Sizer5_MouseLeave);
     //
     // c1Sizer13
     //
     this.c1Sizer13.BackColor           = System.Drawing.Color.Silver;
     this.c1Sizer13.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 0, 0)));
     this.c1Sizer13.Gradient.BackColor2 = System.Drawing.Color.DarkGray;
     blend8.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend8.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer13.Gradient.Blend = blend8;
     this.c1Sizer13.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer13.GridDefinition = "91.8367346938775:False:False;\t93.3333333333333:False:False;";
     this.c1Sizer13.Location       = new System.Drawing.Point(149, 321);
     this.c1Sizer13.Name           = "c1Sizer13";
     this.c1Sizer13.Size           = new System.Drawing.Size(120, 98);
     this.c1Sizer13.TabIndex       = 6;
     this.c1Sizer13.Text           = "c1Sizer5";
     this.c1Sizer13.MouseEnter    += new System.EventHandler(this.c1Sizer11_MouseEnter);
     this.c1Sizer13.MouseLeave    += new System.EventHandler(this.c1Sizer11_MouseLeave);
     //
     // c1Sizer6
     //
     this.c1Sizer6.BackColor           = System.Drawing.Color.SteelBlue;
     this.c1Sizer6.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 0, 0)));
     this.c1Sizer6.Gradient.BackColor2 = System.Drawing.Color.LightSteelBlue;
     blend9.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend9.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer6.Gradient.Blend = blend9;
     this.c1Sizer6.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer6.GridDefinition = "91.4893617021277:False:False;\t93.3333333333333:False:False;";
     this.c1Sizer6.Location       = new System.Drawing.Point(149, 223);
     this.c1Sizer6.Name           = "c1Sizer6";
     this.c1Sizer6.Size           = new System.Drawing.Size(120, 94);
     this.c1Sizer6.TabIndex       = 6;
     this.c1Sizer6.Text           = "c1Sizer5";
     this.c1Sizer6.MouseEnter    += new System.EventHandler(this.c1Sizer5_MouseEnter);
     this.c1Sizer6.MouseLeave    += new System.EventHandler(this.c1Sizer5_MouseLeave);
     //
     // c1Sizer11
     //
     this.c1Sizer11.BackColor           = System.Drawing.Color.Silver;
     this.c1Sizer11.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 0, 60, 0)));
     this.c1Sizer11.Gradient.BackColor2 = System.Drawing.Color.DarkGray;
     blend10.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend10.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer11.Gradient.Blend = blend10;
     this.c1Sizer11.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer11.GridDefinition = "91.8367346938775:False:False;\t93.3884297520661:False:False;";
     this.c1Sizer11.Location       = new System.Drawing.Point(24, 321);
     this.c1Sizer11.Name           = "c1Sizer11";
     this.c1Sizer11.Size           = new System.Drawing.Size(121, 98);
     this.c1Sizer11.TabIndex       = 6;
     this.c1Sizer11.Text           = "c1Sizer5";
     this.c1Sizer11.MouseEnter    += new System.EventHandler(this.c1Sizer11_MouseEnter);
     this.c1Sizer11.MouseLeave    += new System.EventHandler(this.c1Sizer11_MouseLeave);
     //
     // c1Sizer5
     //
     this.c1Sizer5.BackColor           = System.Drawing.Color.SteelBlue;
     this.c1Sizer5.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(60, 0, 0, 0)));
     this.c1Sizer5.Gradient.BackColor2 = System.Drawing.Color.LightSteelBlue;
     blend11.Factors = new float[] {
         0F,
         0.75F,
         1F,
         0F,
         0.75F,
         1F
     };
     blend11.Positions = new float[] {
         0F,
         0.25F,
         0.49F,
         0.51F,
         0.75F,
         1F
     };
     this.c1Sizer5.Gradient.Blend = blend11;
     this.c1Sizer5.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer5.GridDefinition = "91.4893617021277:False:False;\t93.3884297520661:False:False;";
     this.c1Sizer5.Location       = new System.Drawing.Point(24, 223);
     this.c1Sizer5.Name           = "c1Sizer5";
     this.c1Sizer5.Size           = new System.Drawing.Size(121, 94);
     this.c1Sizer5.TabIndex       = 6;
     this.c1Sizer5.Text           = "c1Sizer5";
     this.c1Sizer5.MouseEnter    += new System.EventHandler(this.c1Sizer5_MouseEnter);
     this.c1Sizer5.MouseLeave    += new System.EventHandler(this.c1Sizer5_MouseLeave);
     //
     // c1Sizer4
     //
     this.c1Sizer4.BackColor           = System.Drawing.Color.Red;
     this.c1Sizer4.Border.Color        = System.Drawing.Color.White;
     this.c1Sizer4.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(0, 40, 40, 0)));
     this.c1Sizer4.Border.Thickness    = new System.Windows.Forms.Padding(5);
     this.c1Sizer4.Gradient.BackColor2 = System.Drawing.Color.Blue;
     blend12.Factors = new float[] {
         0F,
         1F
     };
     blend12.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer4.Gradient.Blend = blend12;
     this.c1Sizer4.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Radial;
     this.c1Sizer4.GridDefinition = "81.25:False:False;\t85.2459016393443:False:False;";
     this.c1Sizer4.Location       = new System.Drawing.Point(396, 123);
     this.c1Sizer4.Name           = "c1Sizer4";
     this.c1Sizer4.Size           = new System.Drawing.Size(122, 96);
     this.c1Sizer4.TabIndex       = 5;
     this.c1Sizer4.Text           = "c1Sizer2";
     //
     // c1Sizer2
     //
     this.c1Sizer2.BackColor           = System.Drawing.Color.Red;
     this.c1Sizer2.Border.Color        = System.Drawing.Color.White;
     this.c1Sizer2.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(20, 20, 20, 20)));
     this.c1Sizer2.Border.Thickness    = new System.Windows.Forms.Padding(5);
     this.c1Sizer2.Gradient.BackColor2 = System.Drawing.Color.Blue;
     blend13.Factors = new float[] {
         0F,
         1F
     };
     blend13.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer2.Gradient.Blend = blend13;
     this.c1Sizer2.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.DiagonalDown;
     this.c1Sizer2.GridDefinition = "81.25:False:False;\t84.8739495798319:False:False;";
     this.c1Sizer2.Location       = new System.Drawing.Point(273, 123);
     this.c1Sizer2.Name           = "c1Sizer2";
     this.c1Sizer2.Size           = new System.Drawing.Size(119, 96);
     this.c1Sizer2.TabIndex       = 5;
     this.c1Sizer2.Text           = "c1Sizer2";
     //
     // c1Sizer12
     //
     this.c1Sizer12.BackColor           = System.Drawing.Color.Red;
     this.c1Sizer12.Border.Color        = System.Drawing.Color.White;
     this.c1Sizer12.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(30, 10, 10, 30)));
     this.c1Sizer12.Border.Thickness    = new System.Windows.Forms.Padding(5);
     this.c1Sizer12.Gradient.BackColor2 = System.Drawing.Color.Blue;
     blend14.Factors = new float[] {
         0F,
         1F
     };
     blend14.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer12.Gradient.Blend = blend14;
     this.c1Sizer12.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Vertical;
     this.c1Sizer12.GridDefinition = "81.25:False:False;\t85:False:False;";
     this.c1Sizer12.Location       = new System.Drawing.Point(149, 123);
     this.c1Sizer12.Name           = "c1Sizer12";
     this.c1Sizer12.Size           = new System.Drawing.Size(120, 96);
     this.c1Sizer12.TabIndex       = 5;
     this.c1Sizer12.Text           = "c1Sizer2";
     //
     // c1Sizer7
     //
     this.c1Sizer7.BackColor           = System.Drawing.Color.Red;
     this.c1Sizer7.Border.Color        = System.Drawing.Color.White;
     this.c1Sizer7.Border.Corners      = ((C1.Win.C1Sizer.Corners)(new C1.Win.C1Sizer.Corners(40, 0, 0, 40)));
     this.c1Sizer7.Border.Thickness    = new System.Windows.Forms.Padding(5);
     this.c1Sizer7.Gradient.BackColor2 = System.Drawing.Color.Blue;
     blend15.Factors = new float[] {
         0F,
         1F
     };
     blend15.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer7.Gradient.Blend = blend15;
     this.c1Sizer7.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.Horizontal;
     this.c1Sizer7.GridDefinition = "81.25:False:False;\t85.1239669421488:False:False;";
     this.c1Sizer7.Location       = new System.Drawing.Point(24, 123);
     this.c1Sizer7.Name           = "c1Sizer7";
     this.c1Sizer7.Size           = new System.Drawing.Size(121, 96);
     this.c1Sizer7.TabIndex       = 5;
     this.c1Sizer7.Text           = "c1Sizer2";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(24, 24);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(121, 95);
     this.button1.TabIndex = 4;
     this.button1.Text     = "Toggle animation";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // timer1
     //
     this.timer1.Interval = 10;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // Form1
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor     = System.Drawing.SystemColors.Desktop;
     this.ClientSize    = new System.Drawing.Size(687, 463);
     this.Controls.Add(this.c1Sizer1);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).EndInit();
     this.c1Sizer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer20)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer18)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer17)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer16)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer10)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer14)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer13)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer12)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer7)).EndInit();
     this.ResumeLayout(false);
 }
        protected override void OnDraw(GraphicsCache graphics, System.Drawing.RectangleF area)
        {
            if (FirstColor != Color.Empty || SecondColor != Color.Empty)
            {
                if (FirstColor == SecondColor)
                {
                    SolidBrush brush = graphics.BrushsCache.GetBrush(FirstColor);
                    graphics.Graphics.FillRectangle(brush, area);
                }
                else
                {
                    using (System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(area, FirstColor, SecondColor, Angle))
                    {
                        if (BlendFactors != null && BlendPositions != null &&
                            BlendFactors.Length == BlendPositions.Length)
                        {
                            System.Drawing.Drawing2D.Blend blend = new System.Drawing.Drawing2D.Blend();
                            blend.Factors = BlendFactors;
                            blend.Positions = BlendPositions;

                            brush.Blend = blend;
                        }

                        graphics.Graphics.FillRectangle(brush, area);
                    }
                }
            }
        }
Ejemplo n.º 16
0
 /// <summary>Initializes a new instance of the <see cref="T:Common.Drawing.Drawing2D.Blend" /> class.</summary>
 public Blend()
 {
     WrappedBlend = new System.Drawing.Drawing2D.Blend();
 }
Ejemplo n.º 17
0
        protected override void OnPaintBackground(PaintEventArgs pevent)
        {
            //Simulate Transparency
            System.Drawing.Drawing2D.GraphicsContainer g = pevent.Graphics.BeginContainer();
            Rectangle translateRect = this.Bounds;
            pevent.Graphics.TranslateTransform(-this.Left, -this.Top);
            PaintEventArgs pe = new PaintEventArgs(pevent.Graphics, translateRect);
            this.InvokePaintBackground(this.Parent, pe);
            this.InvokePaint(this.Parent, pe);
            pevent.Graphics.ResetTransform();
            pevent.Graphics.EndContainer(g);

            pevent.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;

            Color shadeColor, fillColor;
            Color darkColor = DarkenColor(this.BackColor, 10);
            Color darkDarkColor = DarkenColor(this.BackColor, 25);
            Color lightColor = LightenColor(this.BackColor, 25);
            Color lightLightColor = LightenColor(this.BackColor, 60);

            if (this.ButtonState == CustomButtonState.Hot)
            {
                fillColor = lightColor;
                shadeColor = darkDarkColor;
            }
            else if (this.ButtonState == CustomButtonState.Pressed)
            {
                fillColor = this.BackColor;
                shadeColor = this.BackColor;
            }
            else
            {
                fillColor = this.BackColor;
                shadeColor = darkDarkColor;
            }

            Rectangle r = this.ClientRectangle;
            System.Drawing.Drawing2D.GraphicsPath path = RoundRectangle(r, this.CornerRadius, this.RoundCorners);

            System.Drawing.Drawing2D.LinearGradientBrush paintBrush = new System.Drawing.Drawing2D.LinearGradientBrush(r, fillColor, shadeColor, System.Drawing.Drawing2D.LinearGradientMode.Vertical);

            //We want a sharp change in the colors so define a Blend for the brush
            System.Drawing.Drawing2D.Blend b = new System.Drawing.Drawing2D.Blend();
            b.Positions = new float[] { 0, 0.45F, 0.55F, 1 };
            b.Factors = new float[] { 0, 0, 1, 1 };
            paintBrush.Blend = b;

            //Draw the Button Background
            pevent.Graphics.FillPath(paintBrush, path);
            paintBrush.Dispose();

            //...and border
            Pen drawingPen = new Pen(darkDarkColor);
            pevent.Graphics.DrawPath(drawingPen, path);
            drawingPen.Dispose();

            //Get the Rectangle to be used for Content
            bool inBounds = false;
            //We could use some Math to get this from the radius but I'm 
            //not great at Math so for the example this hack will suffice.
            while (!inBounds && r.Width >= 1 && r.Height >= 1)
            {
                inBounds = path.IsVisible(r.Left, r.Top) &&
                            path.IsVisible(r.Right, r.Top) &&
                            path.IsVisible(r.Left, r.Bottom) &&
                            path.IsVisible(r.Right, r.Bottom);
                r.Inflate(-1, -1);

            }

            contentRect = r;

        }
Ejemplo n.º 18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Drawing.Drawing2D.Blend blend2 = new System.Drawing.Drawing2D.Blend();
     System.Drawing.Drawing2D.Blend blend1 = new System.Drawing.Drawing2D.Blend();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SizerForm));
     this.c1SuperTooltip1 = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components);
     this.timer1          = new System.Windows.Forms.Timer(this.components);
     this.c1Sizer1        = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer9        = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer4        = new C1.Win.C1Sizer.C1Sizer();
     this.button13        = new C1.Win.C1Input.C1Button();
     this.button12        = new C1.Win.C1Input.C1Button();
     this.button11        = new C1.Win.C1Input.C1Button();
     this.button10        = new C1.Win.C1Input.C1Button();
     this.button9         = new C1.Win.C1Input.C1Button();
     this.button8         = new C1.Win.C1Input.C1Button();
     this.c1Sizer6        = new C1.Win.C1Sizer.C1Sizer();
     this.button7         = new C1.Win.C1Input.C1Button();
     this.button6         = new C1.Win.C1Input.C1Button();
     this.button5         = new C1.Win.C1Input.C1Button();
     this.button4         = new C1.Win.C1Input.C1Button();
     this.c1Sizer2        = new C1.Win.C1Sizer.C1Sizer();
     this.c1Sizer3        = new C1.Win.C1Sizer.C1Sizer();
     this.button25        = new C1.Win.C1Input.C1Button();
     this.button24        = new C1.Win.C1Input.C1Button();
     this.button23        = new C1.Win.C1Input.C1Button();
     this.button22        = new C1.Win.C1Input.C1Button();
     this.button3         = new C1.Win.C1Input.C1Button();
     this.button2         = new C1.Win.C1Input.C1Button();
     this.c1Sizer5        = new C1.Win.C1Sizer.C1Sizer();
     this.button21        = new C1.Win.C1Input.C1Button();
     this.button20        = new C1.Win.C1Input.C1Button();
     this.button19        = new C1.Win.C1Input.C1Button();
     this.button18        = new C1.Win.C1Input.C1Button();
     this.button17        = new C1.Win.C1Input.C1Button();
     this.button16        = new C1.Win.C1Input.C1Button();
     this.button15        = new C1.Win.C1Input.C1Button();
     this.button14        = new C1.Win.C1Input.C1Button();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).BeginInit();
     this.c1Sizer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer9)).BeginInit();
     this.c1Sizer9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).BeginInit();
     this.c1Sizer4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).BeginInit();
     this.c1Sizer6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).BeginInit();
     this.c1Sizer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).BeginInit();
     this.c1Sizer3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).BeginInit();
     this.c1Sizer5.SuspendLayout();
     this.SuspendLayout();
     //
     // c1SuperTooltip1
     //
     this.c1SuperTooltip1.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold;
     this.c1SuperTooltip1.Font           = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.c1SuperTooltip1.IsBalloon      = true;
     this.c1SuperTooltip1.RoundedCorners = true;
     //
     // timer1
     //
     this.timer1.Enabled  = true;
     this.timer1.Interval = 500;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // c1Sizer1
     //
     this.c1Sizer1.BackColor = System.Drawing.SystemColors.ButtonShadow;
     this.c1Sizer1.Controls.Add(this.c1Sizer9);
     this.c1Sizer1.Controls.Add(this.c1Sizer2);
     this.c1Sizer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.c1Sizer1.Gradient.BackColor2 = System.Drawing.Color.Yellow;
     blend2.Factors = new float[] {
         0F,
         1F
     };
     blend2.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer1.Gradient.Blend = blend2;
     this.c1Sizer1.GridDefinition = "60.0896860986547:True:False;39.0134529147982:False:False;\t100:False:False;";
     this.c1Sizer1.Location       = new System.Drawing.Point(0, 0);
     this.c1Sizer1.Name           = "c1Sizer1";
     this.c1Sizer1.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer1.Size           = new System.Drawing.Size(592, 446);
     this.c1Sizer1.TabIndex       = 1;
     this.c1Sizer1.Text           = "c1Sizer1";
     this.c1Sizer1.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer1_SplitterMoved);
     //
     // c1Sizer9
     //
     this.c1Sizer9.BackColor = System.Drawing.SystemColors.ButtonShadow;
     this.c1Sizer9.Controls.Add(this.c1Sizer4);
     this.c1Sizer9.Controls.Add(this.c1Sizer6);
     this.c1Sizer9.GridDefinition = "100:False:False;\t64.0202702702703:True:False;35.3040540540541:False:False;";
     this.c1Sizer9.Location       = new System.Drawing.Point(0, 272);
     this.c1Sizer9.Name           = "c1Sizer9";
     this.c1Sizer9.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer9.Size           = new System.Drawing.Size(592, 174);
     this.c1Sizer9.TabIndex       = 6;
     this.c1Sizer9.Text           = "c1Sizer9";
     this.c1Sizer9.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer9_SplitterMoved);
     //
     // c1Sizer4
     //
     this.c1Sizer4.BackColor        = System.Drawing.SystemColors.Control;
     this.c1Sizer4.Border.Color     = System.Drawing.SystemColors.WindowText;
     this.c1Sizer4.Border.Thickness = new System.Windows.Forms.Padding(1);
     this.c1Sizer4.Controls.Add(this.button13);
     this.c1Sizer4.Controls.Add(this.button12);
     this.c1Sizer4.Controls.Add(this.button11);
     this.c1Sizer4.Controls.Add(this.button10);
     this.c1Sizer4.Controls.Add(this.button9);
     this.c1Sizer4.Controls.Add(this.button8);
     this.c1Sizer4.GridDefinition = "14.9425287356322:False:False;38.5057471264368:False:False;13.7931034482759:False:" +
                                    "True;15.5172413793103:False:True;\t28.4960422163588:False:True;21.6358839050132:F" +
                                    "alse:False;43.0079155672823:False:True;";
     this.c1Sizer4.Location = new System.Drawing.Point(0, 0);
     this.c1Sizer4.Name     = "c1Sizer4";
     this.c1Sizer4.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer4.Size     = new System.Drawing.Size(379, 174);
     this.c1Sizer4.TabIndex = 2;
     this.c1Sizer4.Text     = "c1Sizer4";
     //
     // button13
     //
     this.button13.Location = new System.Drawing.Point(9, 9);
     this.button13.Name     = "button13";
     this.button13.Size     = new System.Drawing.Size(108, 26);
     this.button13.TabIndex = 5;
     this.button13.Text     = "Fixed Width";
     this.button13.UseVisualStyleBackColor = true;
     //
     // button12
     //
     this.button12.Location = new System.Drawing.Point(9, 39);
     this.button12.Name     = "button12";
     this.button12.Size     = new System.Drawing.Size(361, 67);
     this.button12.TabIndex = 4;
     this.button12.Text     = "Free";
     this.button12.UseVisualStyleBackColor = true;
     //
     // button11
     //
     this.button11.Location = new System.Drawing.Point(9, 110);
     this.button11.Name     = "button11";
     this.button11.Size     = new System.Drawing.Size(194, 55);
     this.button11.TabIndex = 3;
     this.button11.Text     = "Fixed Height";
     this.button11.UseVisualStyleBackColor = true;
     //
     // button10
     //
     this.button10.Location = new System.Drawing.Point(121, 9);
     this.button10.Name     = "button10";
     this.button10.Size     = new System.Drawing.Size(249, 26);
     this.button10.TabIndex = 2;
     this.button10.Text     = "Free";
     this.button10.UseVisualStyleBackColor = true;
     //
     // button9
     //
     this.button9.Location = new System.Drawing.Point(207, 110);
     this.button9.Name     = "button9";
     this.button9.Size     = new System.Drawing.Size(163, 24);
     this.button9.TabIndex = 1;
     this.button9.Text     = "Fixed Width && Height";
     this.button9.UseVisualStyleBackColor = true;
     //
     // button8
     //
     this.button8.Location = new System.Drawing.Point(207, 138);
     this.button8.Name     = "button8";
     this.button8.Size     = new System.Drawing.Size(163, 27);
     this.button8.TabIndex = 0;
     this.button8.Text     = "Fixed Width && Height";
     this.button8.UseVisualStyleBackColor = true;
     //
     // c1Sizer6
     //
     this.c1Sizer6.BackColor        = System.Drawing.SystemColors.Control;
     this.c1Sizer6.Border.Color     = System.Drawing.SystemColors.WindowText;
     this.c1Sizer6.Border.Thickness = new System.Windows.Forms.Padding(1);
     this.c1Sizer6.Controls.Add(this.button7);
     this.c1Sizer6.Controls.Add(this.button6);
     this.c1Sizer6.Controls.Add(this.button5);
     this.c1Sizer6.Controls.Add(this.button4);
     this.c1Sizer6.Gradient.Center = new System.Drawing.Point(51, 55);
     this.c1Sizer6.GridDefinition  = "12.0689655172414:False:True;51.1494252873563:False:False;21.8390804597701:False:T" +
                                     "rue;\t49.7607655502392:False:True;39.7129186602871:False:False;";
     this.c1Sizer6.Location = new System.Drawing.Point(383, 0);
     this.c1Sizer6.Name     = "c1Sizer6";
     this.c1Sizer6.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer6.Size     = new System.Drawing.Size(209, 174);
     this.c1Sizer6.TabIndex = 4;
     this.c1Sizer6.Text     = "c1Sizer6";
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(9, 9);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(191, 21);
     this.button7.TabIndex = 3;
     this.button7.Text     = "Fixed Height";
     this.button7.UseVisualStyleBackColor = true;
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(117, 34);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(83, 89);
     this.button6.TabIndex = 2;
     this.button6.Text     = "Free";
     this.button6.UseVisualStyleBackColor = true;
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(9, 127);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(191, 38);
     this.button5.TabIndex = 1;
     this.button5.Text     = "Fixed Height";
     this.button5.UseVisualStyleBackColor = true;
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(9, 34);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(104, 89);
     this.button4.TabIndex = 0;
     this.button4.Text     = "Fixed Width";
     this.button4.UseVisualStyleBackColor = true;
     //
     // c1Sizer2
     //
     this.c1Sizer2.BackColor = System.Drawing.SystemColors.ButtonShadow;
     this.c1Sizer2.Controls.Add(this.c1Sizer3);
     this.c1Sizer2.Controls.Add(this.c1Sizer5);
     this.c1Sizer2.GridDefinition = "100:False:False;\t28.8851351351351:True:False;70.4391891891892:False:False;";
     this.c1Sizer2.Location       = new System.Drawing.Point(0, 0);
     this.c1Sizer2.Name           = "c1Sizer2";
     this.c1Sizer2.Padding        = new System.Windows.Forms.Padding(0);
     this.c1Sizer2.Size           = new System.Drawing.Size(592, 268);
     this.c1Sizer2.TabIndex       = 5;
     this.c1Sizer2.Text           = "c1Sizer2";
     this.c1Sizer2.SplitterMoved += new C1.Win.C1Sizer.C1SizerEventHandler(this.c1Sizer2_SplitterMoved);
     //
     // c1Sizer3
     //
     this.c1Sizer3.BackColor        = System.Drawing.SystemColors.Control;
     this.c1Sizer3.Border.Color     = System.Drawing.SystemColors.ControlText;
     this.c1Sizer3.Border.Thickness = new System.Windows.Forms.Padding(1);
     this.c1Sizer3.Controls.Add(this.button25);
     this.c1Sizer3.Controls.Add(this.button24);
     this.c1Sizer3.Controls.Add(this.button23);
     this.c1Sizer3.Controls.Add(this.button22);
     this.c1Sizer3.Controls.Add(this.button3);
     this.c1Sizer3.Controls.Add(this.button2);
     this.c1Sizer3.Gradient.BackColor2 = System.Drawing.Color.Yellow;
     blend1.Factors = new float[] {
         0F,
         1F
     };
     blend1.Positions = new float[] {
         0F,
         1F
     };
     this.c1Sizer3.Gradient.Blend = blend1;
     this.c1Sizer3.GridDefinition = "39.5522388059701:False:True;7.46268656716418:False:False;8.2089552238806:False:Tr" +
                                    "ue;13.4328358208955:False:True;18.6567164179104:False:False;\t40.3508771929825:Fa" +
                                    "lse:False;46.7836257309942:False:True;";
     this.c1Sizer3.Location = new System.Drawing.Point(0, 0);
     this.c1Sizer3.Name     = "c1Sizer3";
     this.c1Sizer3.Padding  = new System.Windows.Forms.Padding(8);
     this.c1Sizer3.Size     = new System.Drawing.Size(171, 268);
     this.c1Sizer3.TabIndex = 1;
     this.c1Sizer3.Text     = "c1Sizer3";
     //
     // button25
     //
     this.button25.Location = new System.Drawing.Point(9, 169);
     this.button25.Name     = "button25";
     this.button25.Size     = new System.Drawing.Size(69, 36);
     this.button25.TabIndex = 10;
     this.button25.Text     = "Fixed Height";
     this.button25.UseVisualStyleBackColor = true;
     //
     // button24
     //
     this.button24.Location = new System.Drawing.Point(82, 143);
     this.button24.Name     = "button24";
     this.button24.Size     = new System.Drawing.Size(80, 62);
     this.button24.TabIndex = 9;
     this.button24.Text     = "Fixed Width && Height";
     this.button24.UseVisualStyleBackColor = true;
     //
     // button23
     //
     this.button23.Location = new System.Drawing.Point(9, 209);
     this.button23.Name     = "button23";
     this.button23.Size     = new System.Drawing.Size(153, 50);
     this.button23.TabIndex = 8;
     this.button23.Text     = "Free";
     this.button23.UseVisualStyleBackColor = true;
     //
     // button22
     //
     this.button22.Location = new System.Drawing.Point(9, 119);
     this.button22.Name     = "button22";
     this.button22.Size     = new System.Drawing.Size(69, 46);
     this.button22.TabIndex = 7;
     this.button22.Text     = "Free";
     this.button22.UseVisualStyleBackColor = true;
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(82, 9);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(80, 130);
     this.button3.TabIndex = 6;
     this.button3.Text     = "Fixed Width";
     this.button3.UseVisualStyleBackColor = true;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(9, 9);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(69, 106);
     this.button2.TabIndex = 5;
     this.button2.Text     = "Fixed Height";
     this.button2.UseVisualStyleBackColor = true;
     //
     // c1Sizer5
     //
     this.c1Sizer5.BackColor        = System.Drawing.SystemColors.Control;
     this.c1Sizer5.Border.Color     = System.Drawing.SystemColors.WindowText;
     this.c1Sizer5.Border.Thickness = new System.Windows.Forms.Padding(1);
     this.c1Sizer5.Controls.Add(this.button21);
     this.c1Sizer5.Controls.Add(this.button20);
     this.c1Sizer5.Controls.Add(this.button19);
     this.c1Sizer5.Controls.Add(this.button18);
     this.c1Sizer5.Controls.Add(this.button17);
     this.c1Sizer5.Controls.Add(this.button16);
     this.c1Sizer5.Controls.Add(this.button15);
     this.c1Sizer5.Controls.Add(this.button14);
     this.c1Sizer5.Gradient.Mode  = C1.Win.C1Sizer.GradientMode.DiagonalDown;
     this.c1Sizer5.GridDefinition = resources.GetString("c1Sizer5.GridDefinition");
     this.c1Sizer5.Location       = new System.Drawing.Point(175, 0);
     this.c1Sizer5.Name           = "c1Sizer5";
     this.c1Sizer5.Padding        = new System.Windows.Forms.Padding(8);
     this.c1Sizer5.Size           = new System.Drawing.Size(417, 268);
     this.c1Sizer5.TabIndex       = 3;
     this.c1Sizer5.Text           = "c1Sizer5";
     //
     // button21
     //
     this.button21.Location = new System.Drawing.Point(335, 219);
     this.button21.Name     = "button21";
     this.button21.Size     = new System.Drawing.Size(73, 40);
     this.button21.TabIndex = 7;
     this.button21.Text     = "Fixed Width && Height";
     this.button21.UseVisualStyleBackColor = true;
     //
     // button20
     //
     this.button20.Location = new System.Drawing.Point(246, 219);
     this.button20.Name     = "button20";
     this.button20.Size     = new System.Drawing.Size(85, 40);
     this.button20.TabIndex = 6;
     this.button20.Text     = "Fixed Width && Height";
     this.button20.UseVisualStyleBackColor = true;
     //
     // button19
     //
     this.button19.Location = new System.Drawing.Point(91, 219);
     this.button19.Name     = "button19";
     this.button19.Size     = new System.Drawing.Size(151, 40);
     this.button19.TabIndex = 5;
     this.button19.Text     = "Fixed Height";
     this.button19.UseVisualStyleBackColor = true;
     //
     // button18
     //
     this.button18.Location = new System.Drawing.Point(91, 189);
     this.button18.Name     = "button18";
     this.button18.Size     = new System.Drawing.Size(317, 26);
     this.button18.TabIndex = 4;
     this.button18.Text     = "Fixed Height";
     this.button18.UseVisualStyleBackColor = true;
     //
     // button17
     //
     this.button17.Location = new System.Drawing.Point(91, 40);
     this.button17.Name     = "button17";
     this.button17.Size     = new System.Drawing.Size(317, 145);
     this.button17.TabIndex = 3;
     this.button17.Text     = "Free";
     this.button17.UseVisualStyleBackColor = true;
     //
     // button16
     //
     this.button16.Location = new System.Drawing.Point(9, 189);
     this.button16.Name     = "button16";
     this.button16.Size     = new System.Drawing.Size(78, 70);
     this.button16.TabIndex = 2;
     this.button16.Text     = "Fixed Width && Height";
     this.button16.UseVisualStyleBackColor = true;
     //
     // button15
     //
     this.button15.Location = new System.Drawing.Point(9, 40);
     this.button15.Name     = "button15";
     this.button15.Size     = new System.Drawing.Size(78, 145);
     this.button15.TabIndex = 1;
     this.button15.Text     = "Fixed Width";
     this.button15.UseVisualStyleBackColor = true;
     //
     // button14
     //
     this.button14.Location = new System.Drawing.Point(9, 9);
     this.button14.Name     = "button14";
     this.button14.Size     = new System.Drawing.Size(399, 27);
     this.button14.TabIndex = 0;
     this.button14.Text     = "Fixed Height";
     this.button14.UseVisualStyleBackColor = true;
     //
     // SizerForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;//System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(592, 446);
     this.Controls.Add(this.c1Sizer1);
     this.Name  = "SizerForm";
     this.Text  = "SizerForm";
     this.Load += new System.EventHandler(this.SizerForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer1)).EndInit();
     this.c1Sizer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer9)).EndInit();
     this.c1Sizer9.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer4)).EndInit();
     this.c1Sizer4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer6)).EndInit();
     this.c1Sizer6.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer2)).EndInit();
     this.c1Sizer2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer3)).EndInit();
     this.c1Sizer3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1Sizer5)).EndInit();
     this.c1Sizer5.ResumeLayout(false);
     this.ResumeLayout(false);
 }