0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-18 19:31:17 +03:00
ParkanPlayground/NResUI/Models/NResExplorerViewModel.cs
2024-11-18 23:48:42 +03:00

26 lines
498 B
C#

using NResLib;
namespace NResUI.Models;
public class NResExplorerViewModel
{
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;
}
}