mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-02 06:47:25 +00: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");
|
||
|
}
|
||
|
}
|
||
|
}
|