mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-18 15:49:47 +03:00
create NResUI
This commit is contained in:
26
NResUI/Models/ExplorerViewModel.cs
Normal file
26
NResUI/Models/ExplorerViewModel.cs
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user