Files @ 5e28ba3945f7
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/Views/MessageBoxView.axaml.cs

Jason Maltzen
Recipe count is now a ulong instead of an int so it can show values > 2.47 billion. Also, don't allow clearing the recipe list while the recipe generator is running.
using System;
using Avalonia;
using Avalonia.Markup.Xaml;
using Avalonia.ReactiveUI;
using DesertPaintCodex.ViewModels;
using ReactiveUI;


namespace DesertPaintCodex.Views
{
    public class MessageBoxView : ReactiveWindow<MessageBoxViewModel>
    {
        public MessageBoxView()
        {
            InitializeComponent();

#if DEBUG
            this.AttachDevTools();
#endif

            this.WhenActivated(d => d(ViewModel?.PickOption.Subscribe(val => Close(val))!));
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }
    }
}