File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,20 @@ private void CurrentDomain_ProcessExit(object sender, EventArgs e)
107
107
108
108
void Current_DispatcherUnhandledException ( object sender , System . Windows . Threading . DispatcherUnhandledExceptionEventArgs e )
109
109
{
110
- MessageBox . Show ( LanguageHelper . InquireLocalizedWord ( "System_ExcptionInfo" ) + e . Exception . Message ,
110
+ MessageBox . Show ( LanguageHelper . InquireLocalizedWord ( "System_ExcptionInfo" ) + e . Exception . Message + sender . ToString ( ) ,
111
111
LanguageHelper . InquireLocalizedWord ( "TaskBar_AppName" ) ,
112
112
MessageBoxButton . OK ,
113
113
MessageBoxImage . Error ) ;
114
114
}
115
115
116
116
void CurrentDomain_UnhandledException ( object sender , UnhandledExceptionEventArgs e )
117
117
{
118
- MessageBox . Show ( LanguageHelper . InquireLocalizedWord ( "System_ExcptionInfo" ) + e . ToString ( ) ,
118
+ MessageBox . Show ( LanguageHelper . InquireLocalizedWord ( "System_ExcptionInfo" ) + e . ToString ( ) + sender . ToString ( ) ,
119
119
LanguageHelper . InquireLocalizedWord ( "TaskBar_AppName" ) ,
120
120
MessageBoxButton . OK ,
121
121
MessageBoxImage . Error ) ;
122
+
123
+ Environment . Exit ( 1 ) ;
122
124
}
123
125
124
126
private void SystemEvents_SessionEnded ( object sender , SessionEndedEventArgs e )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class MyDay
32
32
/// <returns>今日小结 - Dictionary<string, TimeSpan></returns>
33
33
public Dictionary < string , Software > GetOverView ( )
34
34
{
35
- List < MyTimeDuration > myTimeDurations = TimeLine ;
35
+ List < MyTimeDuration > myTimeDurations = new List < MyTimeDuration > ( TimeLine . ToArray ( ) ) ;
36
36
Dictionary < string , Software > overView = new Dictionary < string , Software > ( ) ;
37
37
38
38
foreach ( MyTimeDuration item in myTimeDurations )
You can’t perform that action at this time.
0 commit comments