private void Banner_Tap(object sender, System.Windows.Input.GestureEventArgs e) { TapCount++; FSLog.Info(TapCount); if (TapCount >= 5) { TapCount = 0; FSLogHelper.EmailSubject = "Lokki WP8 debug log"; FSLogHelper.EmailReceiver = "*****@*****.**"; FSLogHelper.SendEmail(); } }
/// <summary> /// Show crash dialog if crashed and email address is defined for sending log /// </summary> public void ShowCrashDialog() { if (!DidCrash()) { return; } #if HAVE_CRASH_LOG var resp = MessageBox.Show(Localized.CrashDialogMessage.FormatLocalized(Localized.AppName), Localized.CrashDialogTitle, MessageBoxButton.OKCancel); if (resp == MessageBoxResult.OK) { FSLogHelper.EmailSubject = "Lokki WP8 debug log"; FSLogHelper.EmailReceiver = "*****@*****.**"; FSLogHelper.SendEmail(filepath: CRASH_LOG_FILENAME); } RemoveCrashLog(); #endif }