mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-12-22 23:42:50 +01:00
32 lines
716 B
C#
32 lines
716 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.Markup.Xaml;
|
|
using DHT.Desktop.Dialogs.Message;
|
|
|
|
namespace DHT.Desktop.Dialogs.CheckBox {
|
|
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
|
|
public sealed class CheckBoxDialog : Window {
|
|
public CheckBoxDialog() {
|
|
InitializeComponent();
|
|
#if DEBUG
|
|
this.AttachDevTools();
|
|
#endif
|
|
}
|
|
|
|
private void InitializeComponent() {
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public void ClickOk(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.OkCancel.Ok);
|
|
}
|
|
|
|
public void ClickCancel(object? sender, RoutedEventArgs e) {
|
|
Close(DialogResult.OkCancel.Cancel);
|
|
}
|
|
}
|
|
}
|
|
|