void Current_Exit(object sender, ExitEventArgs e) { try { XLCS.Serialize.SerializedFile.SaveXml(MyGlobal.ConfigFilePath, App.MyConfigInfo); #if DEBUG PerformanceUtility.DumpReport(); #endif } catch (Exception ee) { #if DEBUG throw ee; #else ee.Message.Show(); #endif } }