v2rayN/v2rayN/v2rayN.Desktop/Views/MessageBoxDialog.axaml.cs
2026-04-19 17:06:15 +08:00

27 lines
573 B
C#

using v2rayN.Desktop.Common;
namespace v2rayN.Desktop.Views;
public partial class MessageBoxDialog : Window
{
public MessageBoxDialog(string caption, string message)
{
InitializeComponent();
Title = caption;
txtMessage.Text = message;
btnYes.Click += BtnYes_Click;
btnNo.Click += BtnNo_Click;
}
private void BtnYes_Click(object? sender, RoutedEventArgs e)
{
Close(ButtonResult.Yes);
}
private void BtnNo_Click(object? sender, RoutedEventArgs e)
{
Close(ButtonResult.No);
}
}