Added ClosestMatchFileName,

Changed dummy to match HgCV
This commit is contained in:
2022-03-15 13:37:00 -07:00
parent 7a94484d0e
commit 360d2ee4d8
4 changed files with 28 additions and 39 deletions

View File

@ -25,7 +25,7 @@ public class ProcessData : IProcessData
public int Green { get; set; }
public string Text { get; set; }
public int TotalDelta { get; set; }
public string Recipe { get; set; }
public string ClosestMatchFileName { get; set; }
List<object> Shared.Properties.IProcessData.Details => _Details;
@ -260,8 +260,8 @@ public class ProcessData : IProcessData
totalDeltaCollection.Add(new(file, totalDelta));
}
totalDeltaCollection = (from l in totalDeltaCollection orderby l.TotalDelta select l).ToList();
Recipe = Path.GetFileNameWithoutExtension(totalDeltaCollection[0].File);
string[] closestMatchFileNameSplit = Recipe.Split('-');
ClosestMatchFileName = Path.GetFileNameWithoutExtension(totalDeltaCollection[0].File);
string[] closestMatchFileNameSplit = ClosestMatchFileName.Split('-');
Text = closestMatchFileNameSplit.Last().TrimStart();
TotalDelta = totalDeltaCollection[0].TotalDelta;
string textFileName = Get(fileRead, ".txt", $"{TotalDelta} - {Text}");