예제 #1
0
        void ExitMessageHandler(Exception e, Tuple <string, bool> r, string moreInfo = null)
        {
            const string title = "A known fatal error has occurred";

            var message = new XmlSanitizer().SanitizeXmlString(r.Item1);

            TryShowDialog(moreInfo, message, title, e);

            if (!r.Item2)
            {
                return;
            }

            Thread.Sleep(3000);
            Environment.Exit(1);
        }
        void ExitMessageHandler(Exception e, Tuple<string, bool> r, string moreInfo = null) {
            const string title = "A known fatal error has occurred";

            var message = new XmlSanitizer().SanitizeXmlString(r.Item1);

            TryShowDialog(moreInfo, message, title, e);

            if (!r.Item2)
                return;

            Thread.Sleep(3000);
            Environment.Exit(1);
        }