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()); } }
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 { } }