mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 16:08:02 +03:00
texm viewer
This commit is contained in:
27
NResUI/Models/TexmExplorerViewModel.cs
Normal file
27
NResUI/Models/TexmExplorerViewModel.cs
Normal file
@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user