mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-02 03:38:07 +03:00
35 lines
689 B
C#
35 lines
689 B
C#
using v2rayN.Desktop.Common;
|
|
|
|
namespace v2rayN.Desktop.Views;
|
|
|
|
public partial class MessageBoxDialog : Window
|
|
{
|
|
public MessageBoxDialog()
|
|
: this(string.Empty, string.Empty)
|
|
{
|
|
}
|
|
|
|
public MessageBoxDialog(string caption, string message)
|
|
{
|
|
InitializeComponent();
|
|
|
|
Title = caption;
|
|
txtMessage.Text = message;
|
|
|
|
btnYes.Click += BtnYes_Click;
|
|
btnNo.Click += BtnNo_Click;
|
|
|
|
CanMinimize = false;
|
|
}
|
|
|
|
private void BtnYes_Click(object? sender, RoutedEventArgs e)
|
|
{
|
|
Close(ButtonResult.Yes);
|
|
}
|
|
|
|
private void BtnNo_Click(object? sender, RoutedEventArgs e)
|
|
{
|
|
Close(ButtonResult.No);
|
|
}
|
|
}
|