Exemplo n.º 1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GradientControl));
     this._gradientSlider1 = new DotSpatial.Symbology.Forms.GradientSlider();
     this._leverMinimum = new DotSpatial.Symbology.Forms.ColorLever();
     this._leverMaximum = new DotSpatial.Symbology.Forms.ColorLever();
     this.SuspendLayout();
     //
     // _gradientSlider1
     //
     this._gradientSlider1.LeftHandle.Color = System.Drawing.Color.SteelBlue;
     this._gradientSlider1.LeftHandle.Position = 0.2F;
     this._gradientSlider1.LeftHandle.RoundingRadius = 4;
     this._gradientSlider1.LeftHandle.Visible = true;
     this._gradientSlider1.LeftHandle.Width = 10;
     resources.ApplyResources(this._gradientSlider1, "_gradientSlider1");
     this._gradientSlider1.Maximum = 1F;
     this._gradientSlider1.MaximumColor = System.Drawing.Color.Blue;
     this._gradientSlider1.Minimum = 0F;
     this._gradientSlider1.MinimumColor = System.Drawing.Color.Lime;
     this._gradientSlider1.Name = "_gradientSlider1";
     this._gradientSlider1.RightHandle.Color = System.Drawing.Color.SteelBlue;
     this._gradientSlider1.RightHandle.Position = 0.8F;
     this._gradientSlider1.RightHandle.RoundingRadius = 4;
     this._gradientSlider1.RightHandle.Visible = true;
     this._gradientSlider1.RightHandle.Width = 10;
     this._gradientSlider1.PositionChanging += new System.EventHandler(this.gradientSlider1_PositionChanging);
     this._gradientSlider1.PositionChanged += new System.EventHandler(this.gradientSlider1_PositionChanged);
     //
     // _leverMinimum
     //
     this._leverMinimum.Angle = 0D;
     this._leverMinimum.BackColor = System.Drawing.SystemColors.Control;
     this._leverMinimum.BarLength = 5;
     this._leverMinimum.BarWidth = 5;
     this._leverMinimum.BorderWidth = 5;
     this._leverMinimum.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this._leverMinimum.Flip = true;
     this._leverMinimum.KnobColor = System.Drawing.Color.SteelBlue;
     this._leverMinimum.KnobRadius = 7;
     resources.ApplyResources(this._leverMinimum, "_leverMinimum");
     this._leverMinimum.Name = "_leverMinimum";
     this._leverMinimum.Opacity = 0F;
     this._leverMinimum.ColorChanged += new System.EventHandler(this.leverMinimum_ColorChanged);
     this._leverMinimum.ColorChanging += new System.EventHandler(this.leverMinimum_ColorChanging);
     //
     // _leverMaximum
     //
     this._leverMaximum.Angle = 0D;
     this._leverMaximum.BackColor = System.Drawing.SystemColors.Control;
     this._leverMaximum.BarLength = 5;
     this._leverMaximum.BarWidth = 5;
     this._leverMaximum.BorderWidth = 5;
     this._leverMaximum.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     this._leverMaximum.Flip = false;
     this._leverMaximum.KnobColor = System.Drawing.Color.SteelBlue;
     this._leverMaximum.KnobRadius = 7;
     resources.ApplyResources(this._leverMaximum, "_leverMaximum");
     this._leverMaximum.Name = "_leverMaximum";
     this._leverMaximum.Opacity = 1F;
     this._leverMaximum.ColorChanged += new System.EventHandler(this.leverMaximum_ColorChanged);
     this._leverMaximum.ColorChanging += new System.EventHandler(this.leverMaximum_ColorChanging);
     //
     // GradientControl
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.Controls.Add(this._gradientSlider1);
     this.Controls.Add(this._leverMinimum);
     this.Controls.Add(this._leverMaximum);
     this.Name = "GradientControl";
     resources.ApplyResources(this, "$this");
     this.ResumeLayout(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GradientControl));
     this._gradientSlider1 = new DotSpatial.Symbology.Forms.GradientSlider();
     this._leverMinimum    = new DotSpatial.Symbology.Forms.ColorLever();
     this._leverMaximum    = new DotSpatial.Symbology.Forms.ColorLever();
     this.SuspendLayout();
     //
     // _gradientSlider1
     //
     this._gradientSlider1.LeftHandle.Color          = System.Drawing.Color.SteelBlue;
     this._gradientSlider1.LeftHandle.Position       = 0.2F;
     this._gradientSlider1.LeftHandle.RoundingRadius = 4;
     this._gradientSlider1.LeftHandle.Visible        = true;
     this._gradientSlider1.LeftHandle.Width          = 10;
     resources.ApplyResources(this._gradientSlider1, "_gradientSlider1");
     this._gradientSlider1.Maximum                    = 1F;
     this._gradientSlider1.MaximumColor               = System.Drawing.Color.Blue;
     this._gradientSlider1.Minimum                    = 0F;
     this._gradientSlider1.MinimumColor               = System.Drawing.Color.Lime;
     this._gradientSlider1.Name                       = "_gradientSlider1";
     this._gradientSlider1.RightHandle.Color          = System.Drawing.Color.SteelBlue;
     this._gradientSlider1.RightHandle.Position       = 0.8F;
     this._gradientSlider1.RightHandle.RoundingRadius = 4;
     this._gradientSlider1.RightHandle.Visible        = true;
     this._gradientSlider1.RightHandle.Width          = 10;
     this._gradientSlider1.PositionChanging          += new System.EventHandler(this.gradientSlider1_PositionChanging);
     this._gradientSlider1.PositionChanged           += new System.EventHandler(this.gradientSlider1_PositionChanged);
     //
     // _leverMinimum
     //
     this._leverMinimum.Angle       = 0D;
     this._leverMinimum.BackColor   = System.Drawing.SystemColors.Control;
     this._leverMinimum.BarLength   = 5;
     this._leverMinimum.BarWidth    = 5;
     this._leverMinimum.BorderWidth = 5;
     this._leverMinimum.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this._leverMinimum.Flip        = true;
     this._leverMinimum.KnobColor   = System.Drawing.Color.SteelBlue;
     this._leverMinimum.KnobRadius  = 7;
     resources.ApplyResources(this._leverMinimum, "_leverMinimum");
     this._leverMinimum.Name           = "_leverMinimum";
     this._leverMinimum.Opacity        = 0F;
     this._leverMinimum.ColorChanged  += new System.EventHandler(this.leverMinimum_ColorChanged);
     this._leverMinimum.ColorChanging += new System.EventHandler(this.leverMinimum_ColorChanging);
     //
     // _leverMaximum
     //
     this._leverMaximum.Angle       = 0D;
     this._leverMaximum.BackColor   = System.Drawing.SystemColors.Control;
     this._leverMaximum.BarLength   = 5;
     this._leverMaximum.BarWidth    = 5;
     this._leverMaximum.BorderWidth = 5;
     this._leverMaximum.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     this._leverMaximum.Flip        = false;
     this._leverMaximum.KnobColor   = System.Drawing.Color.SteelBlue;
     this._leverMaximum.KnobRadius  = 7;
     resources.ApplyResources(this._leverMaximum, "_leverMaximum");
     this._leverMaximum.Name           = "_leverMaximum";
     this._leverMaximum.Opacity        = 1F;
     this._leverMaximum.ColorChanged  += new System.EventHandler(this.leverMaximum_ColorChanged);
     this._leverMaximum.ColorChanging += new System.EventHandler(this.leverMaximum_ColorChanging);
     //
     // GradientControl
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.Controls.Add(this._gradientSlider1);
     this.Controls.Add(this._leverMinimum);
     this.Controls.Add(this._leverMaximum);
     this.Name = "GradientControl";
     resources.ApplyResources(this, "$this");
     this.ResumeLayout(false);
 }