Files @ 4778889395e8
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/Models/ScreenMetrics.cs

Jason Maltzen
Change the displayed permeutation count to display using locale-specific number formatting (with comma / dot separators). Fix a crash when starting a new round of recipe generation after recipe generation completed during a previous run.
using Avalonia;

namespace DesertPaintCodex.Models
{
    public class ScreenMetrics
    {
        public PixelRect Bounds { get; set; }
        public bool IsPrimary { get; set; }

        public string PositionToStr => $"{Bounds.X}, {Bounds.Y}";
        public string SizeToStr => $"{Bounds.Width}x{Bounds.Height}";

        public ScreenMetrics(PixelRect bounds, bool isPrimary)
        {
            Bounds = bounds;
            IsPrimary = isPrimary;
        }
    }
}