Ticket #2: config-save-at-shutdownevent.patch
File config-save-at-shutdownevent.patch, 753 bytes (added by , 18 years ago) |
---|
-
MacFaceApp.cs
207 207 208 208 updateTimer.Start(); 209 209 210 Microsoft.Win32.SystemEvents.SessionEnded += new Microsoft.Win32.SessionEndedEventHandler(SystemEvents_SessionEnded); 210 211 Application.ApplicationExit += new EventHandler(Application_ApplicationExit); 211 212 Application.Run(this); 212 213 } … … 500 501 501 502 } 502 503 } 504 505 /// <summary> 506 /// 507 /// </summary> 508 /// <param name="sender"></param> 509 /// <param name="e"></param> 510 private void SystemEvents_SessionEnded(object sender, Microsoft.Win32.SessionEndedEventArgs e) 511 { 512 config.Save(); 513 } 503 514 } 504 515 }