mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-05-18 19:31:17 +03:00
27 lines
512 B
C#
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;
|
|
}
|
|
|
|
} |