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
8845f191
Commit
8845f191
authored
Oct 27, 2020
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、主界面增加异常捕获-防止子窗口异常直接退出
parent
dd03730a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
wMain.cs
Tools/wMain.cs
+11
-3
No files found.
Tools/wMain.cs
View file @
8845f191
...
@@ -51,10 +51,18 @@ namespace Tools
...
@@ -51,10 +51,18 @@ namespace Tools
if
(
this
.
listView1
.
Items
.
Count
==
0
)
if
(
this
.
listView1
.
Items
.
Count
==
0
)
return
;
return
;
//打开窗口
//打开窗口
try
{
var
item
=
this
.
listView1
.
SelectedItems
[
0
];
var
item
=
this
.
listView1
.
SelectedItems
[
0
];
var
w
=
item
.
Tag
as
Form
;
var
w
=
item
.
Tag
as
Form
;
w
?.
ShowDialog
();
w
?.
ShowDialog
();
}
}
catch
(
Exception
ex
)
{
var
msg
=
$"错误消息:
{
ex
.
Message
}
\r\n堆栈信息:
{
ex
.
StackTrace
}
"
;
MyUtils
.
Utils
.
Tip
(
msg
,
1200
,
800
);
}
}
private
void
ListView1_ItemSelectionChanged
(
object
sender
,
ListViewItemSelectionChangedEventArgs
e
)
private
void
ListView1_ItemSelectionChanged
(
object
sender
,
ListViewItemSelectionChangedEventArgs
e
)
{
{
var
item
=
e
.
Item
;
var
item
=
e
.
Item
;
...
...
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