Пример #1
0
        public static void Show(string title, Exception exc)
        {
            try
            {
                var srcName = Assembly.GetEntryAssembly().GetName().Name;
                try
                {
                    if (!EventLog.Exists(srcName))
                    {
                        EventLog.WriteEntry(srcName, exc.ToString(), EventLogEntryType.Error);
                    }
                }
                catch
                {; }

                var eb = new ErrorBox(title, exc.Message, exc.ToString());
                eb.ShowDialog();
            }
            catch
            {; }
        }
Пример #2
0
        public static void Show(string title, string message, string details)
        {
            var eb = new ErrorBox(title, message, details);

            eb.ShowDialog();
        }