extend Commander entry with full name CMDR + Name

This commit is contained in:
Florian Stinglmayr 2024-09-18 21:33:05 +02:00
parent 2bf8d9018d
commit 9918c7d559

View File

@ -8,4 +8,13 @@ public class CommanderEntry : Entry {
Name = JSON.Value<string>("Name") ?? ""; Name = JSON.Value<string>("Name") ?? "";
FID = JSON.Value<string>("FID") ?? ""; FID = JSON.Value<string>("FID") ?? "";
} }
public string FullName {
get {
if (string.IsNullOrEmpty(Name)) {
return string.Empty;
}
return "CMDR " + Name;
}
}
} }