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
29107f0c
Commit
29107f0c
authored
Nov 11, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、系统模块:多次打开对象未刷新问题处理
parent
adeff414
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Common.cs
Tools/MyCommon/Common.cs
+1
-1
wExtend.cs
Tools/wExtend.cs
+8
-8
wMain.cs
Tools/wMain.cs
+1
-1
No files found.
Tools/MyCommon/Common.cs
View file @
29107f0c
...
@@ -54,7 +54,7 @@ namespace Tools.MyCommon
...
@@ -54,7 +54,7 @@ namespace Tools.MyCommon
/// <summary>
/// <summary>
/// 窗体对象
/// 窗体对象
/// </summary>
/// </summary>
public
System
.
Windows
.
Forms
.
Form
FrmView
{
get
;
set
;
}
public
Type
FrmView
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 显示名称
/// 显示名称
/// </summary>
/// </summary>
...
...
Tools/wExtend.cs
View file @
29107f0c
...
@@ -20,13 +20,13 @@ namespace Tools
...
@@ -20,13 +20,13 @@ namespace Tools
//为保证显示效果:名称长度尽量少于9个汉字
//为保证显示效果:名称长度尽量少于9个汉字
return
new
List
<
ModuleInfo
>
return
new
List
<
ModuleInfo
>
{
{
this
.
CreateModule
(
new
UpdateExecuter
.
frmMain
(
),
"更新执行工具"
),
this
.
CreateModule
(
typeof
(
UpdateExecuter
.
frmMain
),
"更新执行工具"
),
this
.
CreateModule
(
new
Ftt
.
PatchPack
.
FrmMain
(
),
"自动打包工具"
),
this
.
CreateModule
(
typeof
(
Ftt
.
PatchPack
.
FrmMain
),
"自动打包工具"
),
this
.
CreateModule
(
new
UI
.
wDBTools
(
),
"数据库开发工具"
),
this
.
CreateModule
(
typeof
(
UI
.
wDBTools
),
"数据库开发工具"
),
this
.
CreateModule
(
new
UI
.
wDbAnlysis
(
),
"简易SQL效率分析"
),
this
.
CreateModule
(
typeof
(
UI
.
wDbAnlysis
),
"简易SQL效率分析"
),
this
.
CreateModule
(
new
UI
.
wSysChecker
(
),
"系统检查配置工具"
),
this
.
CreateModule
(
typeof
(
UI
.
wSysChecker
),
"系统检查配置工具"
),
this
.
CreateModule
(
new
UI
.
wMonitorVisit
(
),
"APP模块访问监控"
),
this
.
CreateModule
(
typeof
(
UI
.
wMonitorVisit
),
"APP模块访问监控"
),
this
.
CreateModule
(
new
UI
.
wAppModel
(
),
"APP模块管理"
),
this
.
CreateModule
(
typeof
(
UI
.
wAppModel
),
"APP模块管理"
),
};
};
}
}
...
@@ -38,7 +38,7 @@ namespace Tools
...
@@ -38,7 +38,7 @@ namespace Tools
/// <param name="tip">提示信息</param>
/// <param name="tip">提示信息</param>
/// <param name="imgPath">图片路径</param>
/// <param name="imgPath">图片路径</param>
/// <returns></returns>
/// <returns></returns>
private
ModuleInfo
CreateModule
(
Form
frm
,
string
text
,
string
tip
=
""
)
private
ModuleInfo
CreateModule
(
Type
frm
,
string
text
,
string
tip
=
""
)
{
{
return
new
ModuleInfo
{
return
new
ModuleInfo
{
FrmView
=
frm
,
FrmView
=
frm
,
...
...
Tools/wMain.cs
View file @
29107f0c
...
@@ -54,7 +54,7 @@ namespace Tools
...
@@ -54,7 +54,7 @@ namespace Tools
try
try
{
{
var
item
=
this
.
listView1
.
SelectedItems
[
0
];
var
item
=
this
.
listView1
.
SelectedItems
[
0
];
var
w
=
item
.
Tag
as
Form
;
var
w
=
Activator
.
CreateInstance
(
item
.
Tag
as
Type
)
as
Form
;
w
?.
ShowDialog
();
w
?.
ShowDialog
();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
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