Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
0768c1b0
Commit
0768c1b0
authored
Jun 25, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、主界面:增加使用内存显示
parent
abac8e37
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
8 deletions
+69
-8
wMain.Designer.cs
Tools/wMain.Designer.cs
+47
-7
wMain.cs
Tools/wMain.cs
+15
-0
wMain.resx
Tools/wMain.resx
+7
-1
No files found.
Tools/wMain.Designer.cs
View file @
0768c1b0
...
...
@@ -38,6 +38,7 @@
this
.
HomePage
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
menuStrip1
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
toolStripMenuItem1
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiSysUpload
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiSysUpdate
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiSysReLogin
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tsmiSysExit
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
...
...
@@ -60,7 +61,9 @@
this
.
lbSysLoginUser
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
toolTip1
=
new
System
.
Windows
.
Forms
.
ToolTip
(
this
.
components
);
this
.
tsmiSysUpload
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lbSysMemery
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
panel1
.
SuspendLayout
();
((
System
.
ComponentModel
.
ISupportInitialize
)(
this
.
splitContainer1
)).
BeginInit
();
this
.
splitContainer1
.
Panel1
.
SuspendLayout
();
...
...
@@ -178,6 +181,12 @@
this
.
toolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
21
);
this
.
toolStripMenuItem1
.
Text
=
"系统"
;
//
// tsmiSysUpload
//
this
.
tsmiSysUpload
.
Name
=
"tsmiSysUpload"
;
this
.
tsmiSysUpload
.
Size
=
new
System
.
Drawing
.
Size
(
180
,
22
);
this
.
tsmiSysUpload
.
Text
=
"上传更新"
;
//
// tsmiSysUpdate
//
this
.
tsmiSysUpdate
.
Name
=
"tsmiSysUpdate"
;
...
...
@@ -322,6 +331,8 @@
// Footer
//
this
.
Footer
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
41
)))),
((
int
)(((
byte
)(
101
)))),
((
int
)(((
byte
)(
204
)))));
this
.
Footer
.
Controls
.
Add
(
this
.
lbSysMemery
);
this
.
Footer
.
Controls
.
Add
(
this
.
label3
);
this
.
Footer
.
Controls
.
Add
(
this
.
lbSysVersion
);
this
.
Footer
.
Controls
.
Add
(
this
.
label6
);
this
.
Footer
.
Controls
.
Add
(
this
.
label4
);
...
...
@@ -380,9 +391,9 @@
this
.
lbSysLoginUser
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
lbSysLoginUser
.
Location
=
new
System
.
Drawing
.
Point
(
61
,
4
);
this
.
lbSysLoginUser
.
Name
=
"lbSysLoginUser"
;
this
.
lbSysLoginUser
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
20
);
this
.
lbSysLoginUser
.
Size
=
new
System
.
Drawing
.
Size
(
96
,
20
);
this
.
lbSysLoginUser
.
TabIndex
=
6
;
this
.
lbSysLoginUser
.
Text
=
"开放平台"
;
this
.
lbSysLoginUser
.
Text
=
"
飞天兔
开放平台"
;
this
.
lbSysLoginUser
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// label2
...
...
@@ -398,11 +409,37 @@
this
.
label2
.
Text
=
"登录人员:"
;
this
.
label2
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
//
tsmiSysUpload
//
label3
//
this
.
tsmiSysUpload
.
Name
=
"tsmiSysUpload"
;
this
.
tsmiSysUpload
.
Size
=
new
System
.
Drawing
.
Size
(
180
,
22
);
this
.
tsmiSysUpload
.
Text
=
"上传更新"
;
this
.
label3
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
label3
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
label3
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
177
,
4
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
20
);
this
.
label3
.
TabIndex
=
11
;
this
.
label3
.
Text
=
"内存:"
;
this
.
label3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// lbSysMemery
//
this
.
lbSysMemery
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
lbSysMemery
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
lbSysMemery
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
lbSysMemery
.
Location
=
new
System
.
Drawing
.
Point
(
209
,
4
);
this
.
lbSysMemery
.
Name
=
"lbSysMemery"
;
this
.
lbSysMemery
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
20
);
this
.
lbSysMemery
.
TabIndex
=
12
;
this
.
lbSysMemery
.
Text
=
"00M"
;
this
.
lbSysMemery
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// timer1
//
this
.
timer1
.
Enabled
=
true
;
this
.
timer1
.
Interval
=
1000
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// wMain
//
...
...
@@ -463,5 +500,8 @@
private
System
.
Windows
.
Forms
.
ImageList
imageList1
;
private
System
.
Windows
.
Forms
.
ToolTip
toolTip1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
tsmiSysUpload
;
private
System
.
Windows
.
Forms
.
Label
lbSysMemery
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
}
}
\ No newline at end of file
Tools/wMain.cs
View file @
0768c1b0
...
...
@@ -286,6 +286,19 @@ namespace Tools
#
endregion
#
region
扩展:使用内存展示
//定时器:默认开启,间隔1秒
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
var
p
=
Process
.
GetCurrentProcess
();
var
MB
=
(
p
.
WorkingSet64
/
1024
/
1024
);
this
.
AsyncUI
(()
=>
{
this
.
lbSysMemery
.
Text
=
$"
{
MB
}
M"
;
});
}
#
endregion
#
region
本地:模块菜单渲染及打开模块
...
...
@@ -394,5 +407,7 @@ namespace Tools
{
MessageBox
.
Show
(
msg
,
"提示"
);
}
}
}
Tools/wMain.resx
View file @
0768c1b0
...
...
@@ -117,6 +117,9 @@
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"menuStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
478, 17
</value>
</metadata>
<metadata
name=
"imageList1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
598, 17
</value>
</metadata>
...
...
@@ -125,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAc
GwAAAk1TRnQBSQFMAgEBCQEAA
UgBAAFI
AQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
GwAAAk1TRnQBSQFMAgEBCQEAA
VABAAFQ
AQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABgAMAAWADAAEBAQABCAYAATAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
...
...
@@ -252,6 +255,9 @@
<metadata
name=
"toolTip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
713, 17
</value>
</metadata>
<metadata
name=
"timer1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
814, 17
</value>
</metadata>
<assembly
alias=
"System.Drawing"
name=
"System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
<data
name=
"$this.Icon"
type=
"System.Drawing.Icon, System.Drawing"
mimetype=
"application/x-microsoft.net.object.bytearray.base64"
>
<value>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment