mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-21 02:01:14 +02:00
32 lines
968 B
C#
32 lines
968 B
C#
using Avalonia.Controls;
|
|
using Ryujinx.Ava.UI.Windows;
|
|
using System.Threading;
|
|
|
|
namespace Ryujinx.Ava.UI.Controls
|
|
{
|
|
public partial class UpdateWaitWindow : StyleableWindow
|
|
{
|
|
public UpdateWaitWindow(string primaryText, string secondaryText, CancellationTokenSource cancellationToken) : this(primaryText, secondaryText)
|
|
{
|
|
SystemDecorations = SystemDecorations.Full;
|
|
ShowInTaskbar = true;
|
|
|
|
Closing += (_, _) => cancellationToken.Cancel();
|
|
}
|
|
|
|
public UpdateWaitWindow(string primaryText, string secondaryText) : this()
|
|
{
|
|
PrimaryText.Text = primaryText;
|
|
SecondaryText.Text = secondaryText;
|
|
WindowStartupLocation = WindowStartupLocation.CenterOwner;
|
|
SystemDecorations = SystemDecorations.BorderOnly;
|
|
ShowInTaskbar = false;
|
|
}
|
|
|
|
public UpdateWaitWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
}
|
|
}
|