Beispiel #1
0
 /// <summary>
 /// 窗体退出
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExit_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("您确定要退出个人账务管理系统吗?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.Yes)
     {
         LoggerTsit.Write("退出系统!");
         this.Close();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Error Handling
 /// </summary>
 /// <param name="ex">Exception</param>
 private void ErrorHandling(Exception ex)
 {
     LoggerTsit.Write(string.Format("Error Message: {0}", ex.Message));
     LoggerTsit.Write(string.Format("Error Description: {0}", ex.StackTrace));
 }