aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/Ui/Controls/UpdateWaitWindow.axaml.cs
blob: e4108ba400fb5943f4552a73141c937b1a23643d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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");
        }
    }
}