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
5aae82d4
Commit
5aae82d4
authored
Dec 01, 2021
by
段廷瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、工具类去重
parent
abf851c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
Utils.cs
Tools/MyUtils/Utils.cs
+1
-24
No files found.
Tools/MyUtils/Utils.cs
View file @
5aae82d4
...
@@ -370,7 +370,7 @@ namespace Tools.MyUtils
...
@@ -370,7 +370,7 @@ namespace Tools.MyUtils
/// </summary>
/// </summary>
/// <param name="frm"></param>
/// <param name="frm"></param>
/// <param name="action"></param>
/// <param name="action"></param>
public
static
void
AsyncUI
(
this
Form
frm
,
Action
action
)
public
static
void
AsyncUI
(
this
Control
frm
,
Action
action
)
{
{
if
(
frm
.
Disposing
||
frm
.
IsDisposed
)
if
(
frm
.
Disposing
||
frm
.
IsDisposed
)
return
;
return
;
...
@@ -654,29 +654,6 @@ namespace Tools.MyUtils
...
@@ -654,29 +654,6 @@ namespace Tools.MyUtils
return
a
<=
high
&&
a
>=
low
;
return
a
<=
high
&&
a
>=
low
;
}
}
#
endregion
#
region
(
扩展
)
控件异步
UI
/// <summary>
/// 异步UI:执行方法
/// </summary>
/// <param name="ctrl"></param>
/// <param name="action"></param>
public
static
void
AsyncUI
(
this
Control
ctrl
,
Action
action
)
{
if
(
ctrl
.
Disposing
||
ctrl
.
IsDisposed
)
return
;
//
if
(
ctrl
.
InvokeRequired
)
{
ctrl
.
Invoke
(
action
);
}
else
{
action
();
}
}
#
endregion
#
endregion
#
region
图片分离
#
region
图片分离
...
...
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