make right annotation list more vivid

fix creation new anns bug
This commit is contained in:
Alex Bezdieniezhnykh
2024-11-06 02:06:17 +02:00
parent 36afeb7379
commit 2cf69f4e4e
9 changed files with 61 additions and 42 deletions
+7 -4
View File
@@ -4,12 +4,15 @@ using Azaion.Annotator.Extensions;
namespace Azaion.Annotator.DTO;
public class AnnotationClass(int id, string name = "")
public class AnnotationClass
{
public int Id { get; set; } = id;
public int Id { get; set; }
public string Name { get; set; } = name;
public Color Color { get; set; } = id.ToColor();
public string Name { get; set; }
public string ShortName { get; set; }
[JsonIgnore]
public Color Color => Id.ToColor();
[JsonIgnore]
public int ClassNumber => Id + 1;