mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-12 02:38:50 +02:00
35 lines
981 B
C#
35 lines
981 B
C#
|
using Avalonia;
|
||
|
using Avalonia.Controls;
|
||
|
using Avalonia.Markup.Xaml;
|
||
|
using Ryujinx.Ava.Ui.Windows;
|
||
|
|
||
|
namespace Ryujinx.Ava.Ui.Controls
|
||
|
{
|
||
|
public class UpdateWaitWindow : StyleableWindow
|
||
|
{
|
||
|
public UpdateWaitWindow(string primaryText, string secondaryText) : this()
|
||
|
{
|
||
|
PrimaryText.Text = primaryText;
|
||
|
SecondaryText.Text = secondaryText;
|
||
|
WindowStartupLocation = WindowStartupLocation.CenterOwner;
|
||
|
}
|
||
|
|
||
|
public UpdateWaitWindow()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
#if DEBUG
|
||
|
this.AttachDevTools();
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
public TextBlock PrimaryText { get; private set; }
|
||
|
public TextBlock SecondaryText { get; private set; }
|
||
|
|
||
|
private void InitializeComponent()
|
||
|
{
|
||
|
AvaloniaXamlLoader.Load(this);
|
||
|
PrimaryText = this.FindControl<TextBlock>("PrimaryText");
|
||
|
SecondaryText = this.FindControl<TextBlock>("SecondaryText");
|
||
|
}
|
||
|
}
|
||
|
}
|