-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeskBandUI.cs
125 lines (117 loc) · 5.64 KB
/
DeskBandUI.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
using System.Drawing;
namespace DeskBandUI_NS
{
partial class DeskBandUI
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label_CPU = new System.Windows.Forms.Label();
this.label_Mem = new System.Windows.Forms.Label();
this.timer_Monitor = new System.Windows.Forms.Timer(this.components);
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem_Setting = new System.Windows.Forms.ToolStripMenuItem();
this.mainPanel = new System.Windows.Forms.Panel();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.contextMenu.SuspendLayout();
this.mainPanel.SuspendLayout();
this.SuspendLayout();
//
// label_CPU
//
this.label_CPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label_CPU.BackColor = System.Drawing.Color.Transparent;
this.label_CPU.ForeColor = System.Drawing.Color.White;
this.label_CPU.Location = new System.Drawing.Point(1, 5);
this.label_CPU.Name = "label_CPU";
this.label_CPU.Size = new System.Drawing.Size(74, 15);
this.label_CPU.TabIndex = 1;
this.label_CPU.Text = "CPU : 00.0%";
this.label_CPU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label_Mem
//
this.label_Mem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label_Mem.BackColor = System.Drawing.Color.Transparent;
this.label_Mem.ForeColor = System.Drawing.Color.White;
this.label_Mem.Location = new System.Drawing.Point(1, 20);
this.label_Mem.Name = "label_Mem";
this.label_Mem.Size = new System.Drawing.Size(74, 15);
this.label_Mem.TabIndex = 2;
this.label_Mem.Text = "Mem : 00.0%";
this.label_Mem.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// timer_Monitor
//
this.timer_Monitor.Enabled = true;
this.timer_Monitor.Interval = 1000;
this.timer_Monitor.Tick += new System.EventHandler(this.timer_Monitor_Tick);
//
// contextMenu
//
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem_Setting});
this.contextMenu.Name = "contextMenu";
this.contextMenu.Size = new System.Drawing.Size(113, 26);
//
// ToolStripMenuItem_Setting
//
this.ToolStripMenuItem_Setting.Name = "ToolStripMenuItem_Setting";
this.ToolStripMenuItem_Setting.Size = new System.Drawing.Size(112, 22);
this.ToolStripMenuItem_Setting.Text = "設定(&S)";
this.ToolStripMenuItem_Setting.Click += new System.EventHandler(this.ToolStripMenuItem_Setting_Click);
//
// mainPanel
//
this.mainPanel.Controls.Add(this.label_CPU);
this.mainPanel.Controls.Add(this.label_Mem);
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainPanel.Location = new System.Drawing.Point(0, 0);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(76, 40);
this.mainPanel.TabIndex = 3;
//
// toolTip
//
this.toolTip.IsBalloon = true;
this.toolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
this.toolTip.ToolTipTitle = "Real time monitor";
//
// DeskBandUI
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black;
this.ContextMenuStrip = this.contextMenu;
this.Controls.Add(this.mainPanel);
this.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MinimumSize = new System.Drawing.Size(76, 40);
this.Name = "DeskBandUI";
this.Size = new System.Drawing.Size(76, 40);
this.contextMenu.ResumeLayout(false);
this.mainPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label_CPU;
private System.Windows.Forms.Label label_Mem;
private System.Windows.Forms.Timer timer_Monitor;
private System.Windows.Forms.ContextMenuStrip contextMenu;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_Setting;
private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.ToolTip toolTip;
}
}