Beispiel #1
0
        public static async void DisplayMessageDebugExemption(Exception exeption)
        {
#if DEBUG
            await Reporting.TextViewerAsync(exeption.ToString());
#else
#endif
        }
Beispiel #2
0
        public static async void DisplayMessageDebug(Exception DebugMessage)
        {
#if DEBUG
            await Reporting.TextViewerAsync(DebugMessage.ToString());
#else
#endif
        }
Beispiel #3
0
        public static async void DisplayMessageExemption(Exception exeption)
        {
#if DEBUG
            await Reporting.TextViewerAsync(exeption.ToString());
#else
            string        exc    = exeption.Message;
            MessageDialog dialog = new MessageDialog("There is an internal error" + "\"" + " Or try to restart your computer" + "," + " ErrorMessage " + "\"" + "\"" + exc + "\"", "Error");
            dialog.Commands.Add(new UICommand("Close", (com) =>
            {
            }));
            dialog.Commands.Add(new UICommand("Report", async(com) =>
            {
                string body = "ErrorMessage \"";
                var mailto  = new Uri(EmailAds + AppName + "&body=" + body + exc + " " + Environment.NewLine + DeviceInfo.GetDeviceInformation() + Environment.NewLine + "\"");
                await Launcher.LaunchUriAsync(mailto);
            }));
            await dialog.ShowAsync();
#endif
        }