mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-11-25 05:42:45 +01:00
38 lines
859 B
C#
38 lines
859 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.Markup.Xaml;
|
|
|
|
namespace DHT.Desktop.Dialogs.Message {
|
|
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
|
|
public sealed class MessageDialog : Window {
|
|
public MessageDialog() {
|
|
InitializeComponent();
|
|
#if DEBUG
|
|
this.AttachDevTools();
|
|
#endif
|
|
}
|
|
|
|
private void InitializeComponent() {
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public void ClickOk(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.All.Ok);
|
|
}
|
|
|
|
public void ClickYes(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.All.Yes);
|
|
}
|
|
|
|
public void ClickNo(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.All.No);
|
|
}
|
|
|
|
public void ClickCancel(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.All.Cancel);
|
|
}
|
|
}
|
|
}
|