Files @ d63ade4d8489
Branch filter:

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

Jason Maltzen
Recipe generation no longer incorrectly skips some recipes when a catalyst is included. This should result in some less expensive receips, and more total recipes tested.
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);
        }
    }
}