Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Framework
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Framework
Commits
e32604c6
Commit
e32604c6
authored
Feb 03, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航配置错误
parent
d313a049
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
+14
-1
VIZ.Framework.Common/Widgets/NavigationControl/NavigationItemControl.cs
+1
-1
VIZ.Framework.Module/Setup/Provider/Setup/AppSetup_CatchUnhandledException.cs
+12
-0
VIZ.Framework.Module/VIZ.Framework.Module.csproj
+1
-0
No files found.
VIZ.Framework.Common/Widgets/NavigationControl/NavigationItemControl.cs
View file @
e32604c6
...
...
@@ -140,7 +140,7 @@ namespace VIZ.Framework.Common
private
void
TryCreateContent
()
{
// 已经包含内容,则不创建
if
(
this
.
Content
!=
null
)
if
(
this
.
Content
!=
null
&&
!(
this
.
Content
is
NavigationConfig
)
)
return
;
NavigationConfig
config
=
this
.
DataContext
as
NavigationConfig
;
...
...
VIZ.Framework.Module/Setup/Provider/Setup/AppSetup_CatchUnhandledException.cs
View file @
e32604c6
...
...
@@ -37,6 +37,9 @@ namespace VIZ.Framework.Module
AppDomain
.
CurrentDomain
.
UnhandledException
-=
CurrentDomain_UnhandledException
;
AppDomain
.
CurrentDomain
.
UnhandledException
+=
CurrentDomain_UnhandledException
;
System
.
Windows
.
Forms
.
Application
.
ThreadException
-=
Application_ThreadException
;
System
.
Windows
.
Forms
.
Application
.
ThreadException
+=
Application_ThreadException
;
return
true
;
}
...
...
@@ -66,5 +69,14 @@ namespace VIZ.Framework.Module
Debug
.
WriteLine
(
e
.
Exception
.
Message
);
log
.
Error
(
e
.
Exception
);
}
/// <summary>
/// Winform应用程序未处理异常
/// </summary>
private
void
Application_ThreadException
(
object
sender
,
System
.
Threading
.
ThreadExceptionEventArgs
e
)
{
Debug
.
WriteLine
(
e
.
Exception
);
log
.
Error
(
e
.
Exception
);
}
}
}
VIZ.Framework.Module/VIZ.Framework.Module.csproj
View file @
e32604c6
...
...
@@ -63,6 +63,7 @@
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
...
...
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