Saving to DB, need to render

This commit is contained in:
Lani Aung
2021-11-02 18:33:07 -06:00
parent d52cc4b206
commit 16dfc040a4
18 changed files with 318 additions and 212 deletions
+3 -15
View File
@@ -1,24 +1,12 @@
using System;
using fxl.codes.kisekae.Services;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp;
namespace fxl.codes.kisekae.Models
{
public class PaletteModel
{
internal PaletteModel(ILogger<ConfigurationReaderService> logger, string line)
{
logger.LogTrace($"Parsing palette line {line}");
var parts = line.Split(';');
FileName = parts[0].Replace("%", "").Trim();
if (parts.Length > 1) Comment = parts[1].Trim();
}
public string FileName { get; }
public string Comment { get; }
public Color[] Colors { get; set; } = Array.Empty<Color>();
public string FileName { get; internal set; }
public string Comment { get; internal set; }
public Color[] Colors { get; internal set; } = Array.Empty<Color>();
}
}