6         /// Required designer variable.
 
   8         private System.ComponentModel.IContainer components = null;
 
  11         /// Clean up any resources being used.
 
  13         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 
  14         protected override void Dispose(bool disposing)
 
  16             if (disposing && (components != null))
 
  20             base.Dispose(disposing);
 
  23         #region Windows Form Designer generated code
 
  26         /// Required method for Designer support - do not modify
 
  27         /// the contents of this method with the code editor.
 
  29         private void InitializeComponent()
 
  31             this.components = new System.ComponentModel.Container();
 
  32             this.serSerialPort = new System.IO.Ports.SerialPort(this.components);
 
  33             this.tmrCPUTimer = new System.Windows.Forms.Timer(this.components);
 
  34             this.cmbComPort = new System.Windows.Forms.ComboBox();
 
  35             this.pcCPUUsage = new System.Diagnostics.PerformanceCounter();
 
  36             this.lblCPU = new System.Windows.Forms.Label();
 
  37             this.nicoNotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
 
  38             this.btnMinimizeToTray = new System.Windows.Forms.Button();
 
  39             this.btnExit = new System.Windows.Forms.Button();
 
  40             ((System.ComponentModel.ISupportInitialize)(this.pcCPUUsage)).BeginInit();
 
  45             this.tmrCPUTimer.Enabled = true;
 
  46             this.tmrCPUTimer.Interval = 1000;
 
  47             this.tmrCPUTimer.Tick += new System.EventHandler(this.tmrCPUTimer_Tick);
 
  51             this.cmbComPort.FormattingEnabled = true;
 
  52             this.cmbComPort.Location = new System.Drawing.Point(48, 12);
 
  53             this.cmbComPort.Name = "cmbComPort";
 
  54             this.cmbComPort.Size = new System.Drawing.Size(156, 21);
 
  55             this.cmbComPort.TabIndex = 0;
 
  56             this.cmbComPort.SelectedIndexChanged += new System.EventHandler(this.cbPort_SelectedIndexChanged);
 
  60             this.pcCPUUsage.CategoryName = "Processor";
 
  61             this.pcCPUUsage.CounterName = "% Processor Time";
 
  62             this.pcCPUUsage.InstanceName = "_Total";
 
  66             this.lblCPU.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
 
  67             this.lblCPU.Location = new System.Drawing.Point(44, 36);
 
  68             this.lblCPU.Name = "lblCPU";
 
  69             this.lblCPU.Size = new System.Drawing.Size(160, 28);
 
  70             this.lblCPU.TabIndex = 1;
 
  71             this.lblCPU.Text = "0%";
 
  72             this.lblCPU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
 
  76             this.nicoNotifyIcon.Text = "CPU Usage Monitor";
 
  77             this.nicoNotifyIcon.Visible = true;
 
  81             this.btnMinimizeToTray.Location = new System.Drawing.Point(12, 67);
 
  82             this.btnMinimizeToTray.Name = "btnMinimizeToTray";
 
  83             this.btnMinimizeToTray.Size = new System.Drawing.Size(111, 28);
 
  84             this.btnMinimizeToTray.TabIndex = 2;
 
  85             this.btnMinimizeToTray.Text = "Minimize to Tray";
 
  86             this.btnMinimizeToTray.UseVisualStyleBackColor = true;
 
  87             this.btnMinimizeToTray.Click += new System.EventHandler(this.btnMinimizeToTray_Click);
 
  91             this.btnExit.Location = new System.Drawing.Point(126, 67);
 
  92             this.btnExit.Name = "btnExit";
 
  93             this.btnExit.Size = new System.Drawing.Size(111, 28);
 
  94             this.btnExit.TabIndex = 3;
 
  95             this.btnExit.Text = "Exit";
 
  96             this.btnExit.UseVisualStyleBackColor = true;
 
  97             this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
 
 101             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 
 102             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 
 103             this.ClientSize = new System.Drawing.Size(249, 106);
 
 104             this.Controls.Add(this.btnExit);
 
 105             this.Controls.Add(this.btnMinimizeToTray);
 
 106             this.Controls.Add(this.lblCPU);
 
 107             this.Controls.Add(this.cmbComPort);
 
 108             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
 
 109             this.MaximizeBox = false;
 
 110             this.Name = "frmCPU";
 
 111             this.Text = "CPU Usage Monitor";
 
 112             this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
 
 113             this.Load += new System.EventHandler(this.Form1_Load);
 
 114             ((System.ComponentModel.ISupportInitialize)(this.pcCPUUsage)).EndInit();
 
 115             this.ResumeLayout(false);
 
 121         private System.IO.Ports.SerialPort serSerialPort;
 
 122         private System.Windows.Forms.Timer tmrCPUTimer;
 
 123         private System.Windows.Forms.ComboBox cmbComPort;
 
 124         private System.Diagnostics.PerformanceCounter pcCPUUsage;
 
 125         private System.Windows.Forms.Label lblCPU;
 
 126         private System.Windows.Forms.NotifyIcon nicoNotifyIcon;
 
 127         private System.Windows.Forms.Button btnMinimizeToTray;
 
 128         private System.Windows.Forms.Button btnExit;