0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 15:49:47 +03:00

create NResUI

This commit is contained in:
bird_egop
2024-11-15 19:06:44 +03:00
parent 0c39485188
commit 1091605e2d
22 changed files with 869 additions and 100 deletions

View File

@ -0,0 +1,26 @@
using NResLib;
namespace NResUI.Models;
public class ExplorerViewModel
{
public bool HasFile { get; set; }
public string? Error { get; set; }
public NResArchive? Archive { get; set; }
public string? Path { get; set; }
public void SetParseResult(NResParseResult result, string path)
{
Error = result.Error;
if (result.Archive != null)
{
HasFile = true;
}
Archive = result.Archive;
Path = path;
}
}