Files @ 6a6817b17a06
Branch filter:

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

Jason Maltzen
Simulator view updates: new warning when the recipe is below minimum concentration. Add the missing reactions to the warning about missing reactions. Show the current saved recipe for a color, and allow replacing/saving the current simulated recipe as the recipe for that color.
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace DesertPaintCodex.Views
    public class EmbeddedWarningBox : UserControl
        public static readonly StyledProperty<string> TitleProperty =
            AvaloniaProperty.Register<EmbeddedWarningBox, string>(nameof(Title));
        public string Title { get => GetValue(TitleProperty); set => SetValue(TitleProperty, value); }
        public static readonly StyledProperty<string> MessageProperty =
            AvaloniaProperty.Register<EmbeddedWarningBox, string>(nameof(Message));
        public string Message { get => GetValue(MessageProperty); set => SetValue(MessageProperty, value); }
        public static readonly StyledProperty<string> Message2Property =
            AvaloniaProperty.Register<EmbeddedWarningBox, string>(nameof(Message2));
        public string Message2 { get => GetValue(Message2Property); set => SetValue(Message2Property, value); }

        public EmbeddedWarningBox()

        private void InitializeComponent()