24 lines
509 B
C#
24 lines
509 B
C#
|
|
using Avalonia.Controls;
|
||
|
|
using Avalonia.Interactivity;
|
||
|
|
|
||
|
|
namespace UnifiedFarmLauncher.Views
|
||
|
|
{
|
||
|
|
public partial class ErrorDialog : Window
|
||
|
|
{
|
||
|
|
public ErrorDialog()
|
||
|
|
{
|
||
|
|
InitializeComponent();
|
||
|
|
}
|
||
|
|
|
||
|
|
public ErrorDialog(string errorMessage) : this()
|
||
|
|
{
|
||
|
|
this.FindControl<TextBlock>("ErrorTextBlock")!.Text = errorMessage;
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OkButton_Click(object? sender, RoutedEventArgs e)
|
||
|
|
{
|
||
|
|
Close();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|