CPUMonitor.Designer.cs 5.7 KB

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