Ejemplo n.º 1
0
 internal static void Show(ErrorItem error)
 {
     try
     {
         ExceptionManager.AddItem(error.Time, error.ModuleName, error.Function, error.Information, error.Description);
     }
     catch (Exception ex)
     {
         ExceptionManager.WriteEventLog("ExceptionManager-Show", ex.ToString());
     }
 }
Ejemplo n.º 2
0
 internal static void AddItem(DateTime time, string moduleName, string functionName, string information, string description)
 {
     try
     {
         ExceptionManager.Error = new ErrorItem(DateTime.Now, moduleName, functionName, information, description);
         ExceptionManager.Items.Add(ExceptionManager.Error);
         if (Settings.Default.IsWriteErrorLog)
         {
             ExceptionManager.WriteEventLog(moduleName + "-" + functionName, information + "-" + description);
         }
     }
     catch
     {
     }
 }