private void ckbxCrashResolved_CheckedChanged(object sender, EventArgs e)
 {
     if (ckbxCrashResolved.Checked)
     {
         CurrentError.StateCode = 1;
     }
     else
     {
         CurrentError.StateCode = 0;
     }
     CurrentError.SaveRecordToDatabase(CurrentUser.UserId);
     MessageBox.Show("Resolution state updated!");
 }
コード例 #2
0
        private static void LogException(Exception exception)
        {
            DateTime         timestamp = DateTime.Now;
            ApplicationError err       = new ApplicationError();

            err.TimeStamp  = timestamp;
            err.Data       = exception.Data.ToString();
            err.Message    = exception.Message;
            err.Source     = exception.Source;
            err.StackTrace = exception.StackTrace;

            err.SaveRecordToDatabase(Guid.Empty);
        }