0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-18 19:31:17 +03:00
ParkanPlayground/NResUI/Models/ExplorerViewModel.cs

26 lines
494 B
C#
Raw Normal View History

2024-11-15 19:06:44 +03:00
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;
}
}