|
|
|
@ -3,6 +3,7 @@ using Avalonia.Interactivity;
|
|
|
|
|
using Avalonia.Markup.Xaml; |
|
|
|
|
using FluentAvalonia.UI.Windowing; |
|
|
|
|
using StabilityMatrix.Avalonia.Controls; |
|
|
|
|
using StabilityMatrix.Avalonia.ViewModels.Dialogs; |
|
|
|
|
using StabilityMatrix.Core.Attributes; |
|
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Avalonia.Views.Dialogs; |
|
|
|
@ -23,6 +24,17 @@ public partial class ExceptionDialog : AppWindowBase
|
|
|
|
|
AvaloniaXamlLoader.Load(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "UnusedParameter.Local")] |
|
|
|
|
private async void CopyButton_OnClick(object? sender, RoutedEventArgs e) |
|
|
|
|
{ |
|
|
|
|
var content = (DataContext as ExceptionViewModel)?.FormatAsMarkdown(); |
|
|
|
|
|
|
|
|
|
if (content is not null && Clipboard is not null) |
|
|
|
|
{ |
|
|
|
|
await Clipboard.SetTextAsync(content); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "UnusedParameter.Local")] |
|
|
|
|
private void ExitButton_OnClick(object? sender, RoutedEventArgs e) |
|
|
|
|
{ |
|
|
|
|