добавил tma в просмотр и отрефакторил код

This commit is contained in:
bird_egop
2024-11-26 04:06:11 +03:00
parent b336f44b72
commit e16b219854
28 changed files with 878 additions and 537 deletions
+26
View File
@@ -0,0 +1,26 @@
using MissionTmaLib.Parsing;
namespace NResUI.Models;
public class MissionTmaViewModel
{
public bool HasFile { get; set; }
public string? Error { get; set; }
public MissionTma? Mission { get; set; }
public string? Path { get; set; }
public void SetParseResult(MissionTmaParseResult result, string path)
{
Error = result.Error;
if (result.Mission != null)
{
HasFile = true;
}
Mission = result.Mission;
Path = path;
}
}