예제 #1
0
 private void InitializeComponent()
 {
     this.shadowLabel = new shadowLabel();
     this.SuspendLayout();
     this.shadowLabel.AutoSize     = true;
     this.shadowLabel.EnableShadow = true;
     this.shadowLabel.Font         = new Font("Tahoma", 7.23f);
     this.shadowLabel.ForeColor    = Color.FromArgb(190, 190, 190);
     this.shadowLabel.Location     = new Point(19, 1);
     this.shadowLabel.Name         = "shadowLabel";
     this.shadowLabel.ShadowColor  = Color.Black;
     this.shadowLabel.ShadowOffset = 1;
     this.shadowLabel.Size         = new Size(74, 12);
     this.shadowLabel.TabIndex     = 0;
     this.shadowLabel.Text         = nameof(skeetCheckbox);
     this.shadowLabel.Click       += new EventHandler(this.shadowLabel_Click);
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.Font;
     this.BackgroundImageLayout    = ImageLayout.None;
     this.Controls.Add((Control)this.shadowLabel);
     this.Name   = nameof(skeetCheckbox);
     this.Size   = new Size(91, 16);
     this.Click += new EventHandler(this.skeetCheckbox_Click);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
 private void InitializeComponent()
 {
     this.pnlSlider     = new Panel();
     this.lbTitle       = new shadowLabel();
     this.pnlSliderBox  = new transparentPanel();
     this.lbSliderValue = new outlineLabel();
     this.pnlSlider.SuspendLayout();
     this.SuspendLayout();
     this.pnlSlider.BackColor             = Color.Transparent;
     this.pnlSlider.BackgroundImageLayout = ImageLayout.None;
     this.pnlSlider.Controls.Add((Control)this.pnlSliderBox);
     this.pnlSlider.Controls.Add((Control)this.lbSliderValue);
     this.pnlSlider.Location             = new Point(0, 17);
     this.pnlSlider.Name                 = "pnlSlider";
     this.pnlSlider.Size                 = new Size(158, 23);
     this.pnlSlider.TabIndex             = 1;
     this.lbTitle.AutoSize               = true;
     this.lbTitle.EnableShadow           = true;
     this.lbTitle.Font                   = new Font("Tahoma", 7.23f);
     this.lbTitle.ForeColor              = Color.FromArgb(190, 190, 190);
     this.lbTitle.Location               = new Point(15, 2);
     this.lbTitle.Name                   = "lbTitle";
     this.lbTitle.ShadowColor            = Color.Black;
     this.lbTitle.ShadowOffset           = 1;
     this.lbTitle.Size                   = new Size(53, 12);
     this.lbTitle.TabIndex               = 7;
     this.lbTitle.Text                   = nameof(skeetSlider);
     this.pnlSliderBox.BackColor         = Color.Fuchsia;
     this.pnlSliderBox.Location          = new Point(14, 0);
     this.pnlSliderBox.Name              = "pnlSliderBox";
     this.pnlSliderBox.Size              = new Size(128, 8);
     this.pnlSliderBox.TabIndex          = 6;
     this.pnlSliderBox.Click            += new EventHandler(this.pnlSliderBox_Click);
     this.pnlSliderBox.MouseMove        += new MouseEventHandler(this.pnlSliderBox_MouseMove);
     this.lbSliderValue.AutoSize         = true;
     this.lbSliderValue.Font             = new Font("Verdana", 7.2f, FontStyle.Bold);
     this.lbSliderValue.ForeColor        = Color.FromArgb(190, 190, 190);
     this.lbSliderValue.Location         = new Point(65, 0);
     this.lbSliderValue.Name             = "lbSliderValue";
     this.lbSliderValue.OutlineForeColor = Color.Black;
     this.lbSliderValue.OutlineWidth     = 1.5f;
     this.lbSliderValue.Size             = new Size(37, 12);
     this.lbSliderValue.TabIndex         = 5;
     this.lbSliderValue.Text             = "1.523";
     this.lbSliderValue.TextAlign        = ContentAlignment.TopCenter;
     this.BackColor = Color.FromArgb(20, 20, 20);
     this.Controls.Add((Control)this.lbTitle);
     this.Controls.Add((Control)this.pnlSlider);
     this.Font    = new Font("Verdana", 7.5f, FontStyle.Bold);
     this.Name    = nameof(skeetSlider);
     this.Size    = new Size(158, 40);
     this.Resize += new EventHandler(this.skeetSlider_Resize);
     this.pnlSlider.ResumeLayout(false);
     this.pnlSlider.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }