mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-28 09:48:02 +03:00
* Interaction * Remove view action * ViewModel-first * MainGirdOrientation Hot Reload * Fix avalonia preview * Remove CloseWindowInteraction * Fix * Avoid threading issues * Fix * ProfilesSelect * Try fix previewer * Remove AppEvents.ProfilesRefreshRequested * Remove AppEvents.SubscriptionsRefreshRequested * Remove AppEvents.ProxiesReloadRequested * Remove AppEvents.AdjustMainLvColWidthRequested * Remove AppEvents.SetDefaultServerRequested * Remove AppEvents.RoutingsMenuRefreshRequested * Remove AppEvents.TestServerRequested * Remove AppEvents.InboundDisplayRequested * Remove AppEvents.SubscriptionsUpdateRequested * Remove AppEvents.ShowHideWindowRequested * Remove AppEvents.ReloadRequested * Remove AppEvents.AddServerRequested * Fix
41 lines
823 B
C#
41 lines
823 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();
|
|
|
|
if (Design.IsDesignMode)
|
|
{
|
|
caption = "Design Caption";
|
|
message = "Design Message";
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|