0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-07-09 07:10:27 +03:00
Files
ParkanPlayground/NResUI/Models/TexmExplorerViewModel.cs
2024-11-18 23:48:42 +03:00

27 lines
512 B
C#

using TexmLib;
namespace NResUI.Models;
public class TexmExplorerViewModel
{
public bool HasFile { get; set; }
public string? Error { get; set; }
public TexmFile? TexmFile { get; set; }
public string? Path { get; set; }
public void SetParseResult(TexmParseResult result, string path)
{
Error = result.Error;
if (result.TexmFile != null)
{
HasFile = true;
}
TexmFile = result.TexmFile;
Path = path;
}
}