|
|
|
@ -0,0 +1,352 @@
|
|
|
|
|
namespace WindowsFormsAppFramework
|
|
|
|
|
{
|
|
|
|
|
partial class Form1
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 必需的设计器变量。
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 清理所有正在使用的资源。
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设计器支持所需的方法 - 不要修改
|
|
|
|
|
/// 使用代码编辑器修改此方法的内容。
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
|
|
this.panel1 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.panel2 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
|
|
|
this.progressBar2 = new System.Windows.Forms.ProgressBar();
|
|
|
|
|
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.virtulAddressSpace = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
|
|
|
this.progressBar4 = new System.Windows.Forms.ProgressBar();
|
|
|
|
|
this.progressBar3 = new System.Windows.Forms.ProgressBar();
|
|
|
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
|
|
|
this.listBox1 = new System.Windows.Forms.ListBox();
|
|
|
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label11 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label12 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label13 = new System.Windows.Forms.Label();
|
|
|
|
|
this.panel1.SuspendLayout();
|
|
|
|
|
this.groupBox3.SuspendLayout();
|
|
|
|
|
this.virtulAddressSpace.SuspendLayout();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// panel1
|
|
|
|
|
//
|
|
|
|
|
this.panel1.BackColor = System.Drawing.Color.Black;
|
|
|
|
|
this.panel1.Controls.Add(this.panel2);
|
|
|
|
|
this.panel1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
|
|
|
|
|
this.panel1.Location = new System.Drawing.Point(35, 36);
|
|
|
|
|
this.panel1.Name = "panel1";
|
|
|
|
|
this.panel1.Size = new System.Drawing.Size(116, 347);
|
|
|
|
|
this.panel1.TabIndex = 0;
|
|
|
|
|
this.panel1.TabStop = false;
|
|
|
|
|
this.panel1.Text = "Cpu使用";
|
|
|
|
|
//
|
|
|
|
|
// panel2
|
|
|
|
|
//
|
|
|
|
|
this.panel2.BackColor = System.Drawing.Color.Lime;
|
|
|
|
|
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
|
|
|
|
this.panel2.Location = new System.Drawing.Point(29, 33);
|
|
|
|
|
this.panel2.Name = "panel2";
|
|
|
|
|
this.panel2.Size = new System.Drawing.Size(57, 291);
|
|
|
|
|
this.panel2.TabIndex = 0;
|
|
|
|
|
this.panel2.TabStop = false;
|
|
|
|
|
//
|
|
|
|
|
// groupBox3
|
|
|
|
|
//
|
|
|
|
|
this.groupBox3.Controls.Add(this.label5);
|
|
|
|
|
this.groupBox3.Controls.Add(this.label6);
|
|
|
|
|
this.groupBox3.Controls.Add(this.progressBar2);
|
|
|
|
|
this.groupBox3.Controls.Add(this.progressBar1);
|
|
|
|
|
this.groupBox3.Controls.Add(this.label2);
|
|
|
|
|
this.groupBox3.Controls.Add(this.label1);
|
|
|
|
|
this.groupBox3.Location = new System.Drawing.Point(174, 41);
|
|
|
|
|
this.groupBox3.Name = "groupBox3";
|
|
|
|
|
this.groupBox3.Size = new System.Drawing.Size(322, 129);
|
|
|
|
|
this.groupBox3.TabIndex = 1;
|
|
|
|
|
this.groupBox3.TabStop = false;
|
|
|
|
|
this.groupBox3.Text = "物理内存 G";
|
|
|
|
|
//
|
|
|
|
|
// label5
|
|
|
|
|
//
|
|
|
|
|
this.label5.AutoSize = true;
|
|
|
|
|
this.label5.Location = new System.Drawing.Point(236, 69);
|
|
|
|
|
this.label5.Name = "label5";
|
|
|
|
|
this.label5.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label5.TabIndex = 5;
|
|
|
|
|
this.label5.Text = "label5";
|
|
|
|
|
//
|
|
|
|
|
// label6
|
|
|
|
|
//
|
|
|
|
|
this.label6.AutoSize = true;
|
|
|
|
|
this.label6.Location = new System.Drawing.Point(236, 38);
|
|
|
|
|
this.label6.Name = "label6";
|
|
|
|
|
this.label6.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label6.TabIndex = 4;
|
|
|
|
|
this.label6.Text = "label6";
|
|
|
|
|
//
|
|
|
|
|
// progressBar2
|
|
|
|
|
//
|
|
|
|
|
this.progressBar2.Location = new System.Drawing.Point(91, 69);
|
|
|
|
|
this.progressBar2.Name = "progressBar2";
|
|
|
|
|
this.progressBar2.Size = new System.Drawing.Size(129, 21);
|
|
|
|
|
this.progressBar2.TabIndex = 3;
|
|
|
|
|
//
|
|
|
|
|
// progressBar1
|
|
|
|
|
//
|
|
|
|
|
this.progressBar1.Location = new System.Drawing.Point(91, 28);
|
|
|
|
|
this.progressBar1.Name = "progressBar1";
|
|
|
|
|
this.progressBar1.Size = new System.Drawing.Size(129, 22);
|
|
|
|
|
this.progressBar1.TabIndex = 2;
|
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.AutoSize = true;
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(26, 69);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label2.TabIndex = 1;
|
|
|
|
|
this.label2.Text = "可用数";
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(26, 38);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(29, 12);
|
|
|
|
|
this.label1.TabIndex = 0;
|
|
|
|
|
this.label1.Text = "总数";
|
|
|
|
|
//
|
|
|
|
|
// virtulAddressSpace
|
|
|
|
|
//
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.label7);
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.label8);
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.progressBar4);
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.progressBar3);
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.label4);
|
|
|
|
|
this.virtulAddressSpace.Controls.Add(this.label3);
|
|
|
|
|
this.virtulAddressSpace.Location = new System.Drawing.Point(174, 211);
|
|
|
|
|
this.virtulAddressSpace.Name = "virtulAddressSpace";
|
|
|
|
|
this.virtulAddressSpace.Size = new System.Drawing.Size(322, 149);
|
|
|
|
|
this.virtulAddressSpace.TabIndex = 2;
|
|
|
|
|
this.virtulAddressSpace.TabStop = false;
|
|
|
|
|
this.virtulAddressSpace.Text = "虚拟地址空间 G";
|
|
|
|
|
//
|
|
|
|
|
// label7
|
|
|
|
|
//
|
|
|
|
|
this.label7.AutoSize = true;
|
|
|
|
|
this.label7.Location = new System.Drawing.Point(236, 83);
|
|
|
|
|
this.label7.Name = "label7";
|
|
|
|
|
this.label7.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label7.TabIndex = 7;
|
|
|
|
|
this.label7.Text = "label7";
|
|
|
|
|
//
|
|
|
|
|
// label8
|
|
|
|
|
//
|
|
|
|
|
this.label8.AutoSize = true;
|
|
|
|
|
this.label8.Location = new System.Drawing.Point(236, 43);
|
|
|
|
|
this.label8.Name = "label8";
|
|
|
|
|
this.label8.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label8.TabIndex = 6;
|
|
|
|
|
this.label8.Text = "label8";
|
|
|
|
|
//
|
|
|
|
|
// progressBar4
|
|
|
|
|
//
|
|
|
|
|
this.progressBar4.Location = new System.Drawing.Point(91, 74);
|
|
|
|
|
this.progressBar4.Name = "progressBar4";
|
|
|
|
|
this.progressBar4.Size = new System.Drawing.Size(129, 21);
|
|
|
|
|
this.progressBar4.TabIndex = 5;
|
|
|
|
|
//
|
|
|
|
|
// progressBar3
|
|
|
|
|
//
|
|
|
|
|
this.progressBar3.Location = new System.Drawing.Point(91, 36);
|
|
|
|
|
this.progressBar3.Name = "progressBar3";
|
|
|
|
|
this.progressBar3.Size = new System.Drawing.Size(129, 19);
|
|
|
|
|
this.progressBar3.TabIndex = 4;
|
|
|
|
|
//
|
|
|
|
|
// label4
|
|
|
|
|
//
|
|
|
|
|
this.label4.AutoSize = true;
|
|
|
|
|
this.label4.Location = new System.Drawing.Point(26, 83);
|
|
|
|
|
this.label4.Name = "label4";
|
|
|
|
|
this.label4.Size = new System.Drawing.Size(41, 12);
|
|
|
|
|
this.label4.TabIndex = 1;
|
|
|
|
|
this.label4.Text = "可用数";
|
|
|
|
|
//
|
|
|
|
|
// label3
|
|
|
|
|
//
|
|
|
|
|
this.label3.AutoSize = true;
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(26, 43);
|
|
|
|
|
this.label3.Name = "label3";
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(29, 12);
|
|
|
|
|
this.label3.TabIndex = 0;
|
|
|
|
|
this.label3.Text = "总数";
|
|
|
|
|
//
|
|
|
|
|
// timer1
|
|
|
|
|
//
|
|
|
|
|
this.timer1.Enabled = true;
|
|
|
|
|
this.timer1.Interval = 1000;
|
|
|
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
|
|
|
//
|
|
|
|
|
// label9
|
|
|
|
|
//
|
|
|
|
|
this.label9.AutoSize = true;
|
|
|
|
|
this.label9.Location = new System.Drawing.Point(697, 41);
|
|
|
|
|
this.label9.Name = "label9";
|
|
|
|
|
this.label9.Size = new System.Drawing.Size(173, 12);
|
|
|
|
|
this.label9.TabIndex = 3;
|
|
|
|
|
this.label9.Text = "获取前15个内存占用较高的进程";
|
|
|
|
|
//
|
|
|
|
|
// button1
|
|
|
|
|
//
|
|
|
|
|
this.button1.Location = new System.Drawing.Point(699, 69);
|
|
|
|
|
this.button1.Name = "button1";
|
|
|
|
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
|
|
|
|
this.button1.TabIndex = 4;
|
|
|
|
|
this.button1.Text = "刷新";
|
|
|
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
|
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
|
|
|
//
|
|
|
|
|
// button2
|
|
|
|
|
//
|
|
|
|
|
this.button2.Location = new System.Drawing.Point(795, 68);
|
|
|
|
|
this.button2.Name = "button2";
|
|
|
|
|
this.button2.Size = new System.Drawing.Size(75, 23);
|
|
|
|
|
this.button2.TabIndex = 5;
|
|
|
|
|
this.button2.Text = "kill";
|
|
|
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
|
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
|
|
|
//
|
|
|
|
|
// listBox1
|
|
|
|
|
//
|
|
|
|
|
this.listBox1.FormattingEnabled = true;
|
|
|
|
|
this.listBox1.ItemHeight = 12;
|
|
|
|
|
this.listBox1.Location = new System.Drawing.Point(699, 112);
|
|
|
|
|
this.listBox1.Name = "listBox1";
|
|
|
|
|
this.listBox1.Size = new System.Drawing.Size(171, 244);
|
|
|
|
|
this.listBox1.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// label10
|
|
|
|
|
//
|
|
|
|
|
this.label10.AutoSize = true;
|
|
|
|
|
this.label10.Location = new System.Drawing.Point(12, 397);
|
|
|
|
|
this.label10.Name = "label10";
|
|
|
|
|
this.label10.Size = new System.Drawing.Size(53, 12);
|
|
|
|
|
this.label10.TabIndex = 7;
|
|
|
|
|
this.label10.Text = "进程数:";
|
|
|
|
|
//
|
|
|
|
|
// label11
|
|
|
|
|
//
|
|
|
|
|
this.label11.AutoSize = true;
|
|
|
|
|
this.label11.Location = new System.Drawing.Point(122, 397);
|
|
|
|
|
this.label11.Name = "label11";
|
|
|
|
|
this.label11.Size = new System.Drawing.Size(71, 12);
|
|
|
|
|
this.label11.TabIndex = 8;
|
|
|
|
|
this.label11.Text = "cpu使用率:";
|
|
|
|
|
//
|
|
|
|
|
// label12
|
|
|
|
|
//
|
|
|
|
|
this.label12.AutoSize = true;
|
|
|
|
|
this.label12.Location = new System.Drawing.Point(62, 397);
|
|
|
|
|
this.label12.Name = "label12";
|
|
|
|
|
this.label12.Size = new System.Drawing.Size(47, 12);
|
|
|
|
|
this.label12.TabIndex = 9;
|
|
|
|
|
this.label12.Text = "label12";
|
|
|
|
|
//
|
|
|
|
|
// label13
|
|
|
|
|
//
|
|
|
|
|
this.label13.AutoSize = true;
|
|
|
|
|
this.label13.Location = new System.Drawing.Point(194, 396);
|
|
|
|
|
this.label13.Name = "label13";
|
|
|
|
|
this.label13.Size = new System.Drawing.Size(47, 12);
|
|
|
|
|
this.label13.TabIndex = 10;
|
|
|
|
|
this.label13.Text = "label13";
|
|
|
|
|
//
|
|
|
|
|
// Form1
|
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(934, 418);
|
|
|
|
|
this.Controls.Add(this.label13);
|
|
|
|
|
this.Controls.Add(this.label12);
|
|
|
|
|
this.Controls.Add(this.label11);
|
|
|
|
|
this.Controls.Add(this.label10);
|
|
|
|
|
this.Controls.Add(this.listBox1);
|
|
|
|
|
this.Controls.Add(this.button2);
|
|
|
|
|
this.Controls.Add(this.button1);
|
|
|
|
|
this.Controls.Add(this.label9);
|
|
|
|
|
this.Controls.Add(this.virtulAddressSpace);
|
|
|
|
|
this.Controls.Add(this.groupBox3);
|
|
|
|
|
this.Controls.Add(this.panel1);
|
|
|
|
|
this.Name = "Form1";
|
|
|
|
|
this.Text = "Form1";
|
|
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
|
|
this.panel1.ResumeLayout(false);
|
|
|
|
|
this.groupBox3.ResumeLayout(false);
|
|
|
|
|
this.groupBox3.PerformLayout();
|
|
|
|
|
this.virtulAddressSpace.ResumeLayout(false);
|
|
|
|
|
this.virtulAddressSpace.PerformLayout();
|
|
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
this.PerformLayout();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.GroupBox panel1;
|
|
|
|
|
private System.Windows.Forms.GroupBox panel2;
|
|
|
|
|
private System.Windows.Forms.GroupBox groupBox3;
|
|
|
|
|
private System.Windows.Forms.GroupBox virtulAddressSpace;
|
|
|
|
|
private System.Windows.Forms.Label label5;
|
|
|
|
|
private System.Windows.Forms.Label label6;
|
|
|
|
|
private System.Windows.Forms.ProgressBar progressBar2;
|
|
|
|
|
private System.Windows.Forms.ProgressBar progressBar1;
|
|
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
|
|
private System.Windows.Forms.Label label7;
|
|
|
|
|
private System.Windows.Forms.Label label8;
|
|
|
|
|
private System.Windows.Forms.ProgressBar progressBar4;
|
|
|
|
|
private System.Windows.Forms.ProgressBar progressBar3;
|
|
|
|
|
private System.Windows.Forms.Label label4;
|
|
|
|
|
private System.Windows.Forms.Label label3;
|
|
|
|
|
private System.Windows.Forms.Timer timer1;
|
|
|
|
|
private System.Windows.Forms.Label label9;
|
|
|
|
|
private System.Windows.Forms.Button button1;
|
|
|
|
|
private System.Windows.Forms.Button button2;
|
|
|
|
|
private System.Windows.Forms.ListBox listBox1;
|
|
|
|
|
private System.Windows.Forms.Label label10;
|
|
|
|
|
private System.Windows.Forms.Label label11;
|
|
|
|
|
private System.Windows.Forms.Label label12;
|
|
|
|
|
private System.Windows.Forms.Label label13;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|