/// <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();
     this.pgbCPU     = new XpProgressBar();
     this.tmrCPU     = new System.Windows.Forms.Timer(this.components);
     this.pfcCPU     = new System.Diagnostics.PerformanceCounter();
     ((System.ComponentModel.ISupportInitialize)(this.pfcCPU)).BeginInit();
     this.SuspendLayout();
     //
     // pgbCPU
     //
     this.pgbCPU.ColorBackGround = System.Drawing.Color.White;
     this.pgbCPU.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.pgbCPU.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.pgbCPU.ColorText       = System.Drawing.Color.Black;
     this.pgbCPU.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.pgbCPU.GradientStyle   = GradientMode.Vertical;
     this.pgbCPU.Location        = new System.Drawing.Point(8, 8);
     this.pgbCPU.Name            = "pgbCPU";
     this.pgbCPU.Position        = 60;
     this.pgbCPU.PositionMax     = 100;
     this.pgbCPU.PositionMin     = 0;
     this.pgbCPU.Size            = new System.Drawing.Size(282, 35);
     this.pgbCPU.SteepDistance   = 0;
     this.pgbCPU.SteepWidth      = 3;
     this.pgbCPU.TabIndex        = 3;
     this.pgbCPU.Text            = "CPU 13 %";
     //
     // tmrCPU
     //
     this.tmrCPU.Enabled  = true;
     this.tmrCPU.Interval = 1000;
     this.tmrCPU.Tick    += new System.EventHandler(this.tmrCPU_Tick);
     //
     // pfcCPU
     //
     this.pfcCPU.CategoryName = "Processor";
     this.pfcCPU.CounterName  = "% Processor Time";
     this.pfcCPU.InstanceName = "_Total";
     //
     // Sample_CPU
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(298, 50);
     this.Controls.Add(this.pgbCPU);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "Sample_CPU";
     this.Text            = "Processor Time Sample";
     this.TopMost         = true;
     this.Load           += new System.EventHandler(this.Sample_CPU_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pfcCPU)).EndInit();
     this.ResumeLayout(false);
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.prog1  = new Framework.Controls.XpProgressBar();
     this.prog2  = new Framework.Controls.XpProgressBar();
     this.prog3  = new Framework.Controls.XpProgressBar();
     this.timer1 = new System.Timers.Timer();
     this.timer2 = new System.Timers.Timer();
     this.timer3 = new System.Timers.Timer();
     this.prog4  = new Framework.Controls.XpProgressBar();
     ((System.ComponentModel.ISupportInitialize)(this.timer1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.timer2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.timer3)).BeginInit();
     this.SuspendLayout();
     //
     // prog1
     //
     this.prog1.ColorBackGround = System.Drawing.Color.White;
     this.prog1.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog1.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog1.ColorText       = System.Drawing.Color.Black;
     this.prog1.Font            = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog1.GradientStyle   = Framework.Controls.GradientMode.Vertical;
     this.prog1.Location        = new System.Drawing.Point(16, 24);
     this.prog1.Name            = "prog1";
     this.prog1.Position        = 20;
     this.prog1.PositionMax     = 100;
     this.prog1.PositionMin     = 0;
     this.prog1.Size            = new System.Drawing.Size(334, 44);
     this.prog1.TabIndex        = 5;
     this.prog1.Text            = "13 %";
     //
     // prog2
     //
     this.prog2.ColorBackGround = System.Drawing.Color.White;
     this.prog2.ColorBarBorder  = System.Drawing.Color.White;
     this.prog2.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(192)), ((System.Byte)(192)));
     this.prog2.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192)));
     this.prog2.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog2.GradientStyle   = Framework.Controls.GradientMode.Vertical;
     this.prog2.Location        = new System.Drawing.Point(16, 88);
     this.prog2.Name            = "prog2";
     this.prog2.Position        = 80;
     this.prog2.PositionMax     = 100;
     this.prog2.PositionMin     = 0;
     this.prog2.Size            = new System.Drawing.Size(336, 38);
     this.prog2.SteepDistance   = ((System.Byte)(1));
     this.prog2.SteepWidth      = ((System.Byte)(4));
     this.prog2.TabIndex        = 6;
     this.prog2.Text            = "10";
     //
     // prog3
     //
     this.prog3.ColorBackGround = System.Drawing.Color.White;
     this.prog3.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog3.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog3.ColorText       = System.Drawing.Color.Gainsboro;
     this.prog3.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog3.Location        = new System.Drawing.Point(16, 144);
     this.prog3.Name            = "prog3";
     this.prog3.Position        = 35;
     this.prog3.PositionMax     = 100;
     this.prog3.PositionMin     = 0;
     this.prog3.Size            = new System.Drawing.Size(336, 35);
     this.prog3.SteepDistance   = ((System.Byte)(0));
     this.prog3.SteepWidth      = ((System.Byte)(3));
     this.prog3.TabIndex        = 7;
     this.prog3.Text            = "This is a Fixed Text with Antialising";
     //
     // timer1
     //
     this.timer1.Enabled             = true;
     this.timer1.Interval            = 70;
     this.timer1.SynchronizingObject = this;
     this.timer1.Elapsed            += new System.Timers.ElapsedEventHandler(this.timer1_Elapsed);
     //
     // timer2
     //
     this.timer2.Enabled             = true;
     this.timer2.Interval            = 50;
     this.timer2.SynchronizingObject = this;
     this.timer2.Elapsed            += new System.Timers.ElapsedEventHandler(this.timer2_Elapsed);
     //
     // timer3
     //
     this.timer3.Enabled             = true;
     this.timer3.SynchronizingObject = this;
     this.timer3.Elapsed            += new System.Timers.ElapsedEventHandler(this.timer3_Elapsed);
     //
     // prog4
     //
     this.prog4.ColorBackGround = System.Drawing.Color.White;
     this.prog4.ColorBarBorder  = System.Drawing.Color.Blue;
     this.prog4.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(64)));
     this.prog4.ColorText       = System.Drawing.Color.White;
     this.prog4.Font            = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog4.GradientStyle   = Framework.Controls.GradientMode.Vertical;
     this.prog4.Location        = new System.Drawing.Point(16, 200);
     this.prog4.Name            = "prog4";
     this.prog4.Position        = 35;
     this.prog4.PositionMax     = 100;
     this.prog4.PositionMin     = 0;
     this.prog4.Size            = new System.Drawing.Size(336, 35);
     this.prog4.SteepDistance   = ((System.Byte)(0));
     this.prog4.SteepWidth      = ((System.Byte)(3));
     this.prog4.TabIndex        = 8;
     this.prog4.Text            = "Full Customizable ProgressBar";
     //
     // Sample_Animation
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(376, 245);
     this.Controls.Add(this.prog4);
     this.Controls.Add(this.prog3);
     this.Controls.Add(this.prog2);
     this.Controls.Add(this.prog1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Name            = "Sample_Animation";
     this.Text            = "  Animation Sample";
     this.Load           += new System.EventHandler(this.Sample_Animation_Load);
     ((System.ComponentModel.ISupportInitialize)(this.timer1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.timer2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.timer3)).EndInit();
     this.ResumeLayout(false);
 }
示例#3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.prog1   = new Framework.Controls.XpProgressBar();
     this.prog2   = new Framework.Controls.XpProgressBar();
     this.prog3   = new Framework.Controls.XpProgressBar();
     this.prog4   = new Framework.Controls.XpProgressBar();
     this.prog5   = new Framework.Controls.XpProgressBar();
     this.label1  = new System.Windows.Forms.Label();
     this.timer1  = new System.Timers.Timer();
     this.button1 = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.timer1)).BeginInit();
     this.SuspendLayout();
     //
     // prog1
     //
     this.prog1.ColorBackGround = System.Drawing.Color.White;
     this.prog1.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog1.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog1.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(240)));
     this.prog1.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog1.GradientStyle   = Framework.Controls.GradientMode.Vertical;
     this.prog1.Location        = new System.Drawing.Point(16, 40);
     this.prog1.Name            = "prog1";
     this.prog1.Position        = 100;
     this.prog1.PositionMax     = 100;
     this.prog1.PositionMin     = 0;
     this.prog1.Size            = new System.Drawing.Size(276, 32);
     this.prog1.SteepDistance   = ((System.Byte)(0));
     this.prog1.SteepWidth      = ((System.Byte)(1));
     this.prog1.TabIndex        = 9;
     this.prog1.Text            = "Vertical";
     //
     // prog2
     //
     this.prog2.ColorBackGround = System.Drawing.Color.White;
     this.prog2.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog2.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog2.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(240)));
     this.prog2.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog2.Location        = new System.Drawing.Point(16, 80);
     this.prog2.Name            = "prog2";
     this.prog2.Position        = 100;
     this.prog2.PositionMax     = 100;
     this.prog2.PositionMin     = 0;
     this.prog2.Size            = new System.Drawing.Size(276, 32);
     this.prog2.SteepDistance   = ((System.Byte)(0));
     this.prog2.SteepWidth      = ((System.Byte)(1));
     this.prog2.TabIndex        = 10;
     this.prog2.Text            = "VerticalCenter";
     //
     // prog3
     //
     this.prog3.ColorBackGround = System.Drawing.Color.White;
     this.prog3.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog3.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog3.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(240)));
     this.prog3.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog3.GradientStyle   = Framework.Controls.GradientMode.Horizontal;
     this.prog3.Location        = new System.Drawing.Point(16, 120);
     this.prog3.Name            = "prog3";
     this.prog3.Position        = 100;
     this.prog3.PositionMax     = 100;
     this.prog3.PositionMin     = 0;
     this.prog3.Size            = new System.Drawing.Size(276, 32);
     this.prog3.SteepDistance   = ((System.Byte)(0));
     this.prog3.SteepWidth      = ((System.Byte)(1));
     this.prog3.TabIndex        = 11;
     this.prog3.Text            = "Horizontal";
     //
     // prog4
     //
     this.prog4.ColorBackGround = System.Drawing.Color.White;
     this.prog4.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog4.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog4.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(240)));
     this.prog4.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog4.GradientStyle   = Framework.Controls.GradientMode.HorizontalCenter;
     this.prog4.Location        = new System.Drawing.Point(16, 160);
     this.prog4.Name            = "prog4";
     this.prog4.Position        = 100;
     this.prog4.PositionMax     = 100;
     this.prog4.PositionMin     = 0;
     this.prog4.Size            = new System.Drawing.Size(276, 32);
     this.prog4.SteepDistance   = ((System.Byte)(0));
     this.prog4.SteepWidth      = ((System.Byte)(1));
     this.prog4.TabIndex        = 12;
     this.prog4.Text            = "HorizontalCenter";
     //
     // prog5
     //
     this.prog5.ColorBackGround = System.Drawing.Color.White;
     this.prog5.ColorBarBorder  = System.Drawing.Color.FromArgb(((System.Byte)(170)), ((System.Byte)(240)), ((System.Byte)(170)));
     this.prog5.ColorBarCenter  = System.Drawing.Color.FromArgb(((System.Byte)(10)), ((System.Byte)(150)), ((System.Byte)(10)));
     this.prog5.ColorText       = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(240)));
     this.prog5.Font            = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.prog5.GradientStyle   = Framework.Controls.GradientMode.Diagonal;
     this.prog5.Location        = new System.Drawing.Point(16, 200);
     this.prog5.Name            = "prog5";
     this.prog5.Position        = 100;
     this.prog5.PositionMax     = 100;
     this.prog5.PositionMin     = 0;
     this.prog5.Size            = new System.Drawing.Size(276, 32);
     this.prog5.SteepDistance   = ((System.Byte)(0));
     this.prog5.SteepWidth      = ((System.Byte)(1));
     this.prog5.TabIndex        = 13;
     this.prog5.Text            = "Diagonal";
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label1.Location = new System.Drawing.Point(8, 10);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(296, 24);
     this.label1.TabIndex = 14;
     this.label1.Text     = "Diferents Values For The \"GradientMode\" Property";
     //
     // timer1
     //
     this.timer1.SynchronizingObject = this;
     this.timer1.Elapsed            += new System.Timers.ElapsedEventHandler(this.timer1_Elapsed);
     //
     // button1
     //
     this.button1.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.button1.Location = new System.Drawing.Point(112, 248);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(80, 32);
     this.button1.TabIndex = 15;
     this.button1.Text     = "Start";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // Sample_GradientMode
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(304, 287);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.prog5);
     this.Controls.Add(this.prog4);
     this.Controls.Add(this.prog3);
     this.Controls.Add(this.prog2);
     this.Controls.Add(this.prog1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Name            = "Sample_GradientMode";
     this.Text            = "GradientStyle Sample";
     this.Load           += new System.EventHandler(this.Sample_GradientMode_Load);
     ((System.ComponentModel.ISupportInitialize)(this.timer1)).EndInit();
     this.ResumeLayout(false);
 }