private void ClearLogsButton_OnClick(object sender, RoutedEventArgs e) { var result = MessageBox.Show("Are you sure you want to clear your logs?", "Are you sure?", MessageBoxButton.OKCancel); if (result == MessageBoxResult.OK) { WPLogger.ClearLogs(); } }
private void SendLogButton_OnClick(object sender, RoutedEventArgs e) { var log = WPLogger.GetLogs(); var sb = new StringBuilder(); sb.Append(string.Format("Version: {0}\n", ApplicationManifest.Current.App.Version)); sb.AppendLine(log); new EmailComposeTask { To = "*****@*****.**", Subject = string.Format("Emby log file"), Body = sb.ToString() }.Show(); WPLogger.ClearLogs(); }